From 0060fff26087004c2350de61ef3b52fe34128b5d Mon Sep 17 00:00:00 2001 From: Anton Malinskiy Date: Wed, 7 Aug 2024 18:22:41 +1000 Subject: [PATCH] feat(apple): update sample to support xcode 15 --- .../config/vendor/apple/ios/XcresultConfiguration.kt | 4 ++-- sample/ios-app/Marathonfile-uiTests | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configuration/src/main/kotlin/com/malinskiy/marathon/config/vendor/apple/ios/XcresultConfiguration.kt b/configuration/src/main/kotlin/com/malinskiy/marathon/config/vendor/apple/ios/XcresultConfiguration.kt index f889e0e21..a3dc756b3 100644 --- a/configuration/src/main/kotlin/com/malinskiy/marathon/config/vendor/apple/ios/XcresultConfiguration.kt +++ b/configuration/src/main/kotlin/com/malinskiy/marathon/config/vendor/apple/ios/XcresultConfiguration.kt @@ -39,8 +39,8 @@ enum class PullingPolicy { } enum class ScreenCaptureFormat { - @JsonProperty("screenshots") SCREENSHOTS, - @JsonProperty("screenRecording") SCREEN_RECORDING; + @JsonProperty("SCREENSHOTS") SCREENSHOTS, + @JsonProperty("SCREEN_RECORDING") SCREEN_RECORDING; fun xcodevalue() = when(this) { SCREENSHOTS -> "screenshots" diff --git a/sample/ios-app/Marathonfile-uiTests b/sample/ios-app/Marathonfile-uiTests index fa1828365..7f9ecff9e 100644 --- a/sample/ios-app/Marathonfile-uiTests +++ b/sample/ios-app/Marathonfile-uiTests @@ -26,8 +26,11 @@ vendorConfiguration: username: malinskiy key: ${HOME}/.ssh/marathon knownHostsPath: ${HOME}/.ssh/known_hosts + # Temporary fix for https://github.com/hierynomus/sshj/pull/934 + keepAliveInterval: "PT0H0M0S" xcresult: - pullingStrategy: ALWAYS + pullingPolicy: ALWAYS remoteClean: true + preferredScreenCaptureFormat: SCREENSHOTS lifecycle: onPrepare: []