Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rife2/bld-pitest

Repository files navigation

To install the latest version, add the following to the lib/bld/bld-wrapper.properties file:

bld.extension-pitest=com.uwyn.rife2:bld-pitest

For more information, please refer to the extensions documentation.

Mutation Testing with PIT

To run mutation tests and coverage, add the following to your build file:

@BuildCommand(summary = "Run PIT mutation tests")
public void pit() throws Exception {
new PitestOperation()
.fromProject(this)
.reportDir(Path.of("reports", "mutations"))
.targetClasses(pkg + ".*")
.targetTests(pkg + ".*")
.verbose(true)
.execute();
}
./bld compile pit

Please check the PitestOperation documentation for all available configuration options.

Pitest (PIT) Dependency

Don't forget to add the Pitest test dependencies to your build file, as the are not provided by the extension. For example:

repositories = List.of(MAVEN_CENTRAL);
scope(test)
.include(dependency("org.pitest", "pitest", version(1, 23, 0)))
.include(dependency("org.pitest", "pitest-command-line", version(1, 23, 0)))
.include(dependency("org.pitest", "pitest-junit5-plugin", version(1, 2, 3)))
.include(dependency("org.pitest", "pitest-testng-plugin", version(1, 0, 0)));

About

PIT Mutation Testing and Coverage for bld

Topics

Resources

Readme

License

Apache-2.0 license

Contributing

Contributing

Stars

Watchers

Forks

Packages

Contributors

Languages