From eb63e88fb105f39d6a64ad681b79b9b05993bfa7 Mon Sep 17 00:00:00 2001 From: Evgenii Matsiuk Date: Fri, 29 Nov 2024 10:15:59 +0300 Subject: [PATCH] fix(ios): Xcresult failure stacktrace. The first line is the message, not DocumentLocation (#987) --- .../malinskiy/marathon/apple/listener/TestResultsListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a92acecd0..46c3c82c3 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 @@ -121,12 +121,12 @@ class TestResultsListener( 1 -> { traces.getOrPut(matchingTests.first()) { StringBuilder() } .apply { + appendLine(failureSummary.message) failureSummary.documentLocationInCreatingWorkspace?.let { if (it.url.isNotBlank()) { appendLine(it.url) } } - appendLine(failureSummary.message) } }