Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/208 Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net> Co-authored-by: Michael Hoennig <michael.hoennig@hostsharing.net> Co-committed-by: Michael Hoennig <michael.hoennig@hostsharing.net>
This commit is contained in:
committed by
Timotheus Pokorra
parent
6d92d80e44
commit
d282885cc9
+15
-1
@@ -285,6 +285,7 @@ tasks.compileJava {
|
||||
configure<SpotlessExtension> {
|
||||
java {
|
||||
// Configure formatting steps
|
||||
|
||||
removeUnusedImports()
|
||||
leadingTabsToSpaces(4)
|
||||
endWithNewline()
|
||||
@@ -429,6 +430,20 @@ tasks.named<JacocoCoverageVerification>("jacocoTestCoverageVerification") {
|
||||
}
|
||||
}
|
||||
|
||||
// HOWTO: run all unit-tests - this is useful in an IDE: gw-test anyTest
|
||||
tasks.register<Test>("anyTest") {
|
||||
useJUnitPlatform()
|
||||
|
||||
testLogging {
|
||||
events("passed", "skipped", "failed", "standardOut", "standardError")
|
||||
showStandardStreams = true
|
||||
}
|
||||
|
||||
group = "verification"
|
||||
description = "runs all unit-tests which do not need a database"
|
||||
|
||||
mustRunAfter(tasks.named("spotlessJava"))
|
||||
}
|
||||
|
||||
// HOWTO: run all unit-tests which don't need a database: gw-test unitTest
|
||||
tasks.register<Test>("unitTest") {
|
||||
@@ -591,7 +606,6 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Generate HTML from Markdown scenario-test-reports using Pandoc:
|
||||
tasks.register("convertMarkdownToHtml") {
|
||||
description = "Generates HTML from Markdown scenario-test-reports using Pandoc."
|
||||
|
||||
Reference in New Issue
Block a user