pitmp-maven-plugin icon indicating copy to clipboard operation
pitmp-maven-plugin copied to clipboard

Selection pattern for source classes and test classes

Open nrainer opened this issue 7 years ago • 3 comments

I am wondering if there is a reason why PmpContext#getClassesInternal creates patterns for packages. Is this optimization needed? Patterns using the full path to the Java files might be more precise for projects in which the package does not start with the name of the project (so that packages with the same name can exist in multiple projects).

nrainer avatar Sep 11 '18 11:09 nrainer

If there is no reason against it, I think this is sensible and can reduce unnecessary analysis efforts. For example, in the project Achilles, integration tests of different modules reside in the same package so that they would be executed in each integration test module, causing a large overhead. (https://github.com/doanduyhai/Achilles)

nrainer avatar Sep 14 '18 09:09 nrainer

I created a pull request: https://github.com/STAMP-project/pitmp-maven-plugin/pull/32

nrainer avatar Sep 14 '18 09:09 nrainer

Because it is what PIT does.

Cael35 avatar Sep 19 '18 11:09 Cael35