php - PHPUnit Explicit Testsuites -
is possible define testsuite not run default? run when explicitly called.
the definition looks like:
<testsuite name="1st"> <file>test/1sttest.php</file> </testsuite> <testsuite name="2nd" explicit="true"> <file>test/2ndtest.php</file> </testsuite>
sadly no, phpunit not support feature.
as alternatives:
you use 2 separate config files phpunit, define "2nd" testsuite in 1 file , use them
-c <config_name>.xml
option when run phpunit.same base principle above, time 2 separate bash files, instead of xml config files. call phpunit each
--testsuite="<suite_name>"
option.
Comments
Post a Comment