Skip to content

Commit

Permalink
fix: enhance smoke test debuggability by echoing build output from in…
Browse files Browse the repository at this point in the history
…ner Gradle runner
  • Loading branch information
ianbotsf committed Jan 31, 2025
1 parent 0298a12 commit 3d3d289
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class SmokeTestE2ETest {

assertContains(smokeTestRunnerOutput, "not ok ExceptionService ExceptionTest - no error expected from service")
assertContains(smokeTestRunnerOutput, "#aws.smithy.kotlin.runtime.http.interceptors.SmokeTestsFailureException: Smoke test failed with HTTP status code: 400")
assertContains(smokeTestRunnerOutput, "#\tat aws.smithy.kotlin.runtime.http.interceptors.SmokeTestsInterceptor.readBeforeDeserialization(SmokeTestsInterceptor.kt:19)")
assertContains(smokeTestRunnerOutput, "#\tat aws.smithy.kotlin.runtime.http.interceptors.InterceptorExecutor.readBeforeDeserialization(InterceptorExecutor.kt:252)")
}

@Test
Expand Down Expand Up @@ -72,6 +70,7 @@ private fun runSmokeTests(
":tests:codegen:smoke-tests:services:$service:smokeTest",
)
.withEnvironment(envVars)
.forwardOutput()

val buildResult = if (expectingFailure) task.buildAndFail() else task.build()

Expand Down

0 comments on commit 3d3d289

Please sign in to comment.