【发布时间】:2023-04-01 04:31:01
【问题描述】:
所以我想从我的测试套件中排除一个目录,就像这样:
<testsuite name="PHPUnitWillKillMe">
<directory>src/*/Bundle/*/*Bundle/Tests</directory>
<exclude>src/*/Bundle/*/*Bundle/Tests/Controller/</exclude>
</testsuite>
除了控制器之外的所有东西都应该被测试。
问题是,它不起作用。当我运行时,PHPUnit 仍然运行 src//Bundle//*Bundle/Tests/Controller/ 中的所有测试
phpunit --testsuite PHPUnitWillKillMe
有什么想法吗?
最好的问候!
我测试的 PHPUnit 版本是 3.7.21 和 3.7.28。
【问题讨论】:
-
这个之前的“解决方案”stackoverflow.com/questions/2736343/…怎么样?
-
我不这么认为,请参阅phpunit.de/manual/3.7/en/appendixes.configuration.html -> 测试套件
标签: php unit-testing phpunit