Dans l'aide de PHPUnit, il est indiqué ce qui suit :
--group ... Only runs tests from the specified group(s).
--exclude-group ... Exclude tests from the specified group(s).
Assez facile pour un seul groupe. Cela fonctionne :
phpunit --group fast
Je n'arrive pas à comprendre comment faire avec plus d'un groupe. Ce qui suit ne fonctionne pas pour moi :
phpunit --group fast unit # It believes you want to test unit.php
phpunit --group fast, unit # It believes you want to test unit.php
phpunit --group "fast unit" # It looks for a single group "fast unit"
phpunit --groups fast, unit # There is no option, groups
phpunit --group fast --group unit # Only one is honored
Toute idée sur la syntaxe correcte serait la bienvenue. Je vous remercie de votre attention.