This action makes easier to include mutation testing as a part of a Github Action pipeline.
If you find this action useful let me know by adding a โญ this encourage me to keep working on it.
Happy to hear any suggestions or improvements.
The purpose of this action is to execute pitest, upload the report as an artifact and add a comment with the summary of the execution
- Gradle
- PITest plugin
plugins {
id("info.solidsoft.pitest") version "1.15.0"
}
- PITest configuration working in local, here an example:
pitest {
junit5PluginVersion = "1.2.1"
targetClasses= listOf("package-to-check")
outputFormats = listOf("HTML") //this is important because it will update it as an artifact
}
Add action as step
uses: isamadrid90/gradle-pitest-comment-action@v2.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
reports-retention: 1
reports-path: "project/build/reports/pitest"
working-directory: project
Name | Value | Default | Required | Description |
---|---|---|---|---|
repo-token | String | - | yes | Token to upload reports as artifact |
reports-retention | Int | 1 | no | Retention for the uploaded reports |
reports-path | String | "build/reports/pitest" | no | The path where the pitest reports are saved |
working-directory | String | "." | no | Path to directory where gradle can be executed |