Skip to content

Commit

Permalink
Better logging of failed class init
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Aug 5, 2024
1 parent d39d119 commit 978cd7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/kotlin/dev/restate/sdktesting/junit/TestSuite.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ class TestSuite(
}
}
}
if (testIdentifier.source.getOrNull() is ClassSource) {
val name = describeTestIdentifier(name, testPlan!!, testIdentifier)
when (testExecutionResult.status!!) {
TestExecutionResult.Status.ABORTED -> terminal.println("$name init")
TestExecutionResult.Status.FAILED -> {
terminal.println("$name init")
}
else -> {}
}
}
}
}
val injectLoggingContextListener =
Expand Down

0 comments on commit 978cd7e

Please sign in to comment.