Showing posts with label testing cakephp. Show all posts
Showing posts with label testing cakephp. Show all posts

Wednesday, 10 August 2016

Error: No code coverage driver is available phpunit test

Just turn on x debug in your server


in centos

sudo vi /etc/php.d/15-xdebug.ini

Tuesday, 9 August 2016

common used functions in testing cakephp 3x

Command line

  ./vendor/bin/phpunit tests/TestCase/Model/Table/UsersTableTest

vendor/bin/phpunit   tests/TestCase/Controller/SettingsControllerTest.php

vendor/bin/phpunit   tests/TestCase/Controller/UsersControllerTest.php --coverage-html webroot/coverage  --whitelist src/Controller/UsersController.php