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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -