In PHPUnit’s help it displays the following:
--group ... Only runs tests from the specified group(s).
--exclude-group ... Exclude tests from the specified group(s).
Easy enough for one group. This works:
phpunit --group fast
Now, I can’t quite figure out how to do this with more than one group. The following is not working for me:
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
Any thoughts on the correct syntax would be welcome. Thank you.
Use comma separation without any whitespace. E.g.