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:

  1. you use 2 separate config files phpunit, define "2nd" testsuite in 1 file , use them -c <config_name>.xml option when run phpunit.

  2. same base principle above, time 2 separate bash files, instead of xml config files. call phpunit each --testsuite="<suite_name>" option.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -