Github page: link
From the root folder of your CodeIgniter application (where the application
folder is in):
composer require kenjis/ci-phpunit-test --dev
Then run:
php vendor/kenjis/ci-phpunit-test/install.php
composer update kenjis/ci-phpunit-test
and:
php vendor/kenjis/ci-phpunit-test/update.php
sudo apt-get install phpunit
From the CodeIgniter application/tests
folder:
phpunit
In this case you can create a info.php
file where you can list the contents of your local development server.
<?php
phpinfo();
Then you can modify the application/tests/phpunit.xml
file by adding the following:
<php>
<server name="HTTP_HOST" value="your.intranet.local"/>
<server name="REQUEST_SCHEME" value="https"/>
<server name="HTTPS" value="on"/>
<server name="DOCUMENT_ROOT" value="/var/www/your-app/private_html"/>
</php>
You have to modify the values and required settings to your own needs.
For more information on this works see this link.
Reference: link
sudo npm install npm -g
Reference: link
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
followed by:
sudo apt-get install -y nodejs
and for the essentials:
sudo apt-get install -y build-essential
Reference: link
Install this on your development server, not your desktop linux
npm install http-server -g
From a terminal go to the application/tests/build/coverages
folder of your CodeIgniter application.
From there just type http-server
. Now you can access the html page with the coverages from:
http://123.123.123.123:8080
where 123.123.123.123 is the right IP-address of your intranet server.