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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -