【发布时间】:2011-05-18 23:41:21
【问题描述】:
是否可以通过命令行测试运行程序从配置文件中指定要运行的测试套件?例如,如果我有以下 xml 配置:
<phpunit ...>
<testsuites>
<testsuite name="My Test Suite 1">
<directory>./MyTestSuite1/</directory>
</testsuite>
<testsuite name="My Test Suite 2">
<directory>./MyTestSuite2/</directory>
</testsuite>
</testsuites>
...
</phpunit>
我可以让它只运行“我的测试套件 1”吗?
【问题讨论】:
-
我知道你可以从 Testcase 中单独测试。不过不确定套房。尝试做类似
phpunit Suitename Path/To/AllSuites.php或其他方式的事情。另外,检查phpunit --help和phpunit.de/manual/3.4/en/textui.html
标签: php unit-testing phpunit