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
Post a Comment