Wednesday, 7 August 2013

"No tests executed" I cannot run any PHP test in NetBeans at all

"No tests executed" I cannot run any PHP test in NetBeans at all

I am very new to NetBeans and I just wanted to run a Code Coverage teston
my code developed earlier. I do not know what I am doing wrong.
I am using NetBeans 7.3.1 with Wamp Server 2.4, installed PHPUnit and
Skeleton Generator through PEAR, and set those files in NetBeans settings.
I made the project using an existing sources. Running in my browser seems
OK. I can even debug with XDebug.
But when I right click on the project name and "Test", it says "No tests
executed.(0.0 s)" in the Test Result window, and this in the Output
window:
PHPUnit 3.7.23 by Sebastian Bergmann.
Configuration read from 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 a PHP file, it returns an information dialog box
"Test file for the selected source file was not found."
I right clicked on the PHP file, and selected "Tools->Create PHPUnit
tests", it returns a warning dialog box "Tests were not generated for the
following files: (file name) Review the log in Output Window." but nothing
was changed in the Output window.
I generated PHPUnit Bootstrap and XML Configuration, but they did not help.
I wished I can provide screenshots, but I cannot. I am trying to be
specific as possible. I appreciate any help.

No comments:

Post a Comment