How to exclude tests from PIT mutation analysis?

Now I am in a protracted situation with a complex project, where a significant part has been reorganized and verified with a significant number of failed tests.

I run PIT in maven, but I have not been able for a long time because the tests should be green, but I want the PIT overview to be at least on the tests that are being executed.

What is the most efficient way to isolate failed tests from PIT?

+4
source share
1 answer

I suggest creating a JUnit category 'PIT_SKIP' and flag all failed tests. After that, you can set the property excludedGroupsin the PIT maven configuration to filter the selected tests.

You can also go in the opposite direction and create the category 'PIT_OK' and use the property includedGroups.

PIT Plugin Maven.

+2
source

Source: https://habr.com/ru/post/1619927/


All Articles