Skip to content

Commit

Permalink
Define task for running ConsoleLauncher manually
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Oct 31, 2021
1 parent 88918cd commit 14a9ff9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions documentation/documentation.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,21 @@ tasks {
}
}

register<JavaExec>("consoleLauncher") {
val reportsDir = file("$buildDir/console-launcher")
outputs.dir(reportsDir)
outputs.upToDateWhen { false }
classpath = sourceSets["test"].runtimeClasspath
mainClass.set("org.junit.platform.console.ConsoleLauncher")
args("--scan-classpath")
args("--config", "enableHttpServer=true")
args("--include-classname", ".*Tests")
args("--include-classname", ".*Demo")
args("--exclude-tag", "exclude")
args("--reports-dir", reportsDir)
systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
}

test {
dependsOn(consoleLauncherTest)
exclude("**/*")
Expand Down

0 comments on commit 14a9ff9

Please sign in to comment.