OrchestrationError
class OrchestrationError(orchestrationStacks: Array<StackTraceElement>, cause: Throwable) : AssertionError
An exception that enhances test failure reporting by merging orchestration stack traces with execution stack traces.
This class is used in dynamic testing scenarios to provide clearer error traces when assertions fail. It combines the stack trace from the test orchestration framework with the actual execution stack trace, making it easier to debug test failures by showing both the test setup and the point of failure.
Example usage:
val test = captureDynamicTest("My Test") {
assertTrue(false) // This will throw AssertionError
}
// When the test fails, OrchestrationError will be thrown with merged stack tracesContent copied to clipboard
Parameters
orchestrationStacks
The stack trace elements from the test orchestration framework.
cause
The original Throwable that caused the failure, typically an AssertionError.