Skip to content

Commit

Permalink
Fix mistakenly removed section in smithy-cli gradle build (smithy-lan…
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbaker authored Feb 22, 2024
1 parent 2ce89e3 commit 2c2e472
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions smithy-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,26 @@ sourceSets {
}
}

task integ(type: Test) {
useJUnitPlatform()
systemProperty "SMITHY_BINARY", "${smithyBinary}"
testClassesDirs = sourceSets["it"].output.classesDirs
classpath = sourceSets["it"].runtimeClasspath

// Configuration parameters to execute top-level classes in parallel but methods in same thread
systemProperties["junit.jupiter.execution.parallel.enabled"] = "true"
systemProperties["junit.jupiter.execution.parallel.mode.default"] = "same_thread"
systemProperties["junit.jupiter.execution.parallel.mode.classes.default"] = "concurrent"

testLogging {
events = ["passed", "skipped", "failed"]
exceptionFormat = "full"
}
}

// Runtime images need to be created before integration tests can run.
tasks["integ"].dependsOn("runtime")

// ------ Setup Jreleaser -------
tasks.assembleDist.doFirst {
// This is a workaround for a weird behavior.
Expand Down

0 comments on commit 2c2e472

Please sign in to comment.