5

I'm in a drawn-out situation now with a difficult project where a significant part was refactored and checked in with a significant number of failing tests.

I run PIT in maven but I haven't been able to for a long time because the tests have to be green, but I want the PIT overview at least on the tests that do run.

What's the most effective way to isolate the failing tests from PIT?

4

1 回答 1

2

我建议创建JUnit 类别 “PIT_SKIP”并用它标记所有失败的测试。之后,您可以excludedGroups在 PIT maven 配置中设置属性以过滤掉选定的测试。

您也可以反方向创建类别“PIT_OK”并使用属性includedGroups

PIT Maven 插件文档

于 2015-12-14T16:02:54.110 回答