Mutation testing for Java in Eclipse IDE. Based on PIT (Pitest).
Test your tests right into your IDE!
Provides mutation coverage for your Java programs within the Eclipse IDE. Built on PIT (Pitest) for reliability.
Faults (or mutations) are automatically seeded into your code, then your tests are run. If your tests fail then the mutation is killed, if your tests pass then the mutation lived.
The quality of your tests can be gauged from the percentage of mutations killed.
Henry Coles, pitest.org
Once the plug-in is installed (see Installation below), you can run Pitest:
Run As
> PIT Mutation Test
Wait a few seconds, two views should open to show the results:
It is also possible to run a single JUnit test class. Specific PIT options can be configured from the Launch Configuration window:
Run
> Run Configurations...
PIT Mutation Test
Run
Preferences also allow to change mutation settings (Window > Preferences > Pitest
).
The plug-in is available in the Eclipse Marketplace.
Drag the following button to your running Eclipse workspace to start the installation:
Tip: use Working Sets for a better workspace organization:
- Open Project Explorer's menu > Top Level Elements > Working Sets
- Open Project Explorer's menu > Select Working Sets > Check "bundles", "features", "tests" and "releng"
org.pitest.pitclipse.target/org.pitest.pitclipse.target.target
filemvn clean verify
See CONTRIBUTING.md for further details.