php - phpunit no tests executed -


i have 'no tests executed' phpunit..

this line works

$ phpunit install/installdbtest.php ... <result expected> ...  $ cat suites/installtests.xml    <phpunit>     <testsuites>         <testsuite name="database">             <file>install/installdbtest.php</file>         </testsuite>     </testsuites> </phpunit>  $ phpunit -c suites/installtests.xml  phpunit 4.7.4 sebastian bergmann , contributors.    time: 130 ms, memory: 11.25mb  no tests executed! 

does can tell me doing wrong ?

thanks in advance!

you need correct path in phpunit.xml.

it trying find filesuites/install/installdbtest.php. since file doesn't exist, no tests run , message.

change configuration following:

<phpunit>     <testsuites>         <testsuite name="database">             <file>../install/installdbtest.php</file>         </testsuite>     </testsuites> </phpunit> 

file paths in phpunit.xml relative location of xml file.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -