Complete the code to run a basic PIT mutation test with JUnit.
MutationCoverage coverage = new MutationCoverageBuilder().withTestPlugin("[1]")
The PIT mutation testing tool integrates with JUnit using the "junit" test plugin.
Complete the code to specify the target classes for mutation testing.
PitStrategy strategy = new PitStrategy().withTargetClasses("[1]")
Target classes should be your own application packages, e.g., "com.example.*".
Fix the error in the PIT configuration code to correctly set the mutators.
PitStrategy strategy = new PitStrategy().withMutators("[1]")
The correct mutator set name in PIT is "DEFAULTS" in uppercase.
Fill both blanks to configure PIT to exclude test classes and set the output format.
PitStrategy strategy = new PitStrategy().withExcludedClasses("[1]*").withOutputFormats("[2]")
Exclude test classes by pattern "Test*" and set output format to "HTML" for readable reports.
Fill all three blanks to create a mutation test run with PIT using JUnit, targeting your package, and setting mutators.
PitStrategy strategy = new PitStrategy().withTestPlugin("[1]") .withTargetClasses("[2]*") .withMutators("[3]")
This sets PIT to use JUnit tests, target your application package "com.myapp*", and use the default mutators.