Skip to content

Commit a830b50

Browse files
author
Adrian Clay
authored
Don't fail Actions Workflow when no mutation testing is performed (#827)
`pitest-github` gradle task will fail by default if no mutation testing is performed. This will occur when a PR is raised which doesn't change any production code. e.g. docs, tests only etc.
1 parent cc966f2 commit a830b50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

service/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,14 @@ pitest {
152152
// git feature limits analysis to contents of PR only
153153
features = ["+GIT(from[HEAD~1])"]
154154

155+
// PRs which don't introduce any production code changes, shouldn't fail the Mutation Testing Actions Workflow
156+
failWhenNoMutations = false
157+
155158
mutators = ['STRONGER', 'EXTENDED_ALL']
156159

157160
threads = project.getGradle().getStartParameter().getMaxWorkerCount()
158161
}
159162

160163
bootJar {
161164
exclude("**/TransformJsonToXml*")
162-
}
165+
}

0 commit comments

Comments
 (0)