Skip to content

Commit 803cbb6

Browse files
committed
Add build parameter for enabling dry-run mode for test execution
(cherry picked from commit 2f148ea)
1 parent eb43e62 commit 803cbb6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

gradle/plugins/build-parameters/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ buildParameters {
6565
}
6666
group("testing") {
6767
description = "Testing related parameters"
68+
bool("dryRun") {
69+
description = "Enables dry run mode for tests"
70+
defaultValue = false
71+
}
6872
bool("enableJaCoCo") {
6973
description = "Enables JaCoCo test coverage reporting"
7074
defaultValue = true

gradle/plugins/common/src/main/kotlin/junitbuild.testing-conventions.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ tasks.withType<Test>().configureEach {
113113
"-XX:FlightRecorderOptions=stackdepth=1024"
114114
)
115115
}
116+
systemProperty("junit.platform.execution.dryRun.enabled", buildParameters.testing.dryRun)
116117

117118
// Track OS as input so that tests are executed on all configured operating systems on CI
118119
trackOperationSystemAsInput()

0 commit comments

Comments
 (0)