Non public classes scmMutationCoverage possible issues

20 views
Skip to first unread message

Jakub W

unread,
May 19, 2024, 10:12:09 AMMay 19
to PIT Users
Hello,

I found info in the documentantion (https://pitest.org/quickstart/maven/) about some issues with scmMutationCoverage goal:
This goal does not currently guarantee to analyse changes made to non public classes that are not inner classes.

My questions are:
1. What kind of issues can I encounter?
2. How often this kind of issues could occur?
3. Are there many issues with simple package-private classes?

Thanks in advance for your answers :)

Jakub

henry

unread,
May 19, 2024, 10:22:19 AMMay 19
to PIT Users
The plugin needs to map between source file paths and affected classes. The java compiler only enforces a naming convention for public classes, so if you have non public classes defined in a modified source file they may not be included for analysis. How often this is a problem will depend on the style of your code.

This issue is does not occur with the arcmutate git plugin, which calculates mappings by a more robust method.


Regards

Henry
Reply all
Reply to author
Forward
0 new messages