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 - ScrollTo Effect (href to div) -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -

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