From 8dea79a79c848017947383ff15804852c90e0092 Mon Sep 17 00:00:00 2001 From: Anton Malinskiy Date: Fri, 8 Nov 2024 22:01:31 +1000 Subject: [PATCH] feat(apple): support multi failure summaries --- .../marathon/execution/result/TestRunResultsAccumulator.kt | 3 +-- .../malinskiy/marathon/apple/listener/TestResultsListener.kt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/kotlin/com/malinskiy/marathon/execution/result/TestRunResultsAccumulator.kt b/core/src/main/kotlin/com/malinskiy/marathon/execution/result/TestRunResultsAccumulator.kt index cee4107cd..5adc1b255 100644 --- a/core/src/main/kotlin/com/malinskiy/marathon/execution/result/TestRunResultsAccumulator.kt +++ b/core/src/main/kotlin/com/malinskiy/marathon/execution/result/TestRunResultsAccumulator.kt @@ -141,8 +141,7 @@ class TestRunResultsAccumulator(private val timer: Timer) { r = TemporalTestResult(startTime = timer.currentTimeMillis()) } r.status = status - if (r.stackTrace == null) { - //ignore stack trace overrides + if (!trace.isNullOrBlank()) { r.stackTrace = trace } startTime?.let { r.startTime = it } diff --git a/vendor/vendor-apple/base/src/main/kotlin/com/malinskiy/marathon/apple/listener/TestResultsListener.kt b/vendor/vendor-apple/base/src/main/kotlin/com/malinskiy/marathon/apple/listener/TestResultsListener.kt index 82eeb9cb6..a92acecd0 100644 --- a/vendor/vendor-apple/base/src/main/kotlin/com/malinskiy/marathon/apple/listener/TestResultsListener.kt +++ b/vendor/vendor-apple/base/src/main/kotlin/com/malinskiy/marathon/apple/listener/TestResultsListener.kt @@ -138,7 +138,7 @@ class TestResultsListener( traces.forEach { (test, traceBuilder) -> runResult.testFailed( test, - trace = traceBuilder.toString() + trace = traceBuilder.toString().trim() ) } }.let {