在PHPUnit的帮助,它会显示以下内容:使用PHPUnit,你如何测试两个或更多的组?
--group ... Only runs tests from the specified group(s).
--exclude-group ... Exclude tests from the specified group(s).
很容易为一组。这工作:
phpunit --group fast
现在,我不能完全弄清楚如何做到这一点与多个组。以下不适用于我:
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
任何关于正确语法的想法都会受到欢迎。谢谢。
工作就像一个魅力。谢谢! – bitsoflogic 2011-01-26 20:47:27