testing - "No tests executed" I cannot run any PHP test in NetBeans at all -
i new netbeans , wanted run code coverage teston code developed earlier. not know doing wrong.
i using netbeans 7.3.1 wamp server 2.4, installed phpunit , skeleton generator through pear, , set files in netbeans settings.
i made project using existing sources. running in browser seems ok. can debug xdebug.
but when right click on project name , "test", says "no tests executed.(0.0 s)" in test result window, , in output window:
phpunit 3.7.23 sebastian bergmann. configuration read c:\wamp\www\test\configuration.xml time: 141 ms, memory: 2.00mb no tests executed! generating code coverage report in clover xml format ... done
i tried running test on php file, returns information dialog box "test file selected source file not found."
i right clicked on php file, , selected "tools->create phpunit tests", returns warning dialog box "tests not generated following files: (file name) review log in output window." nothing changed in output window.
i generated phpunit bootstrap , xml configuration, did not help.
i wished can provide screenshots, cannot. trying specific possible. appreciate help.
i got error too.. got in output tab
fatal error: class 'package\path\tests\testcase' not found in project\path\package\path\tests\clienttest.php on line 25
here, testcase
subclass of phpunit_framework_testcase
, that, along current test file in different directory structure source files. so, in case, path issue.
something noted need add bootstrap file include files in test path , source path runtime.
this bootstrap generated netbeans. see instructions here: https://netbeans.org/kb/docs/php/phpunit.html#project-specific-configurations
i of course, had bootstrap.php (added developer). had link bootstrap follows,
good luck!
Comments
Post a Comment