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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy