From 07651bd3f541b9679ed960d1aaf5e2b6931e0bb4 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Thu, 27 Jul 2023 16:03:26 +0100 Subject: [PATCH] Specify ElementX target for coverage in integrations plan. (#1398) --- .../SupportingFiles/IntegrationTests.xctestplan | 9 +++++++++ changelog.d/pr-1398.build | 1 + fastlane/Fastfile | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 changelog.d/pr-1398.build diff --git a/IntegrationTests/SupportingFiles/IntegrationTests.xctestplan b/IntegrationTests/SupportingFiles/IntegrationTests.xctestplan index 3bbfab9b1..8a3dfdefc 100644 --- a/IntegrationTests/SupportingFiles/IntegrationTests.xctestplan +++ b/IntegrationTests/SupportingFiles/IntegrationTests.xctestplan @@ -9,6 +9,15 @@ } ], "defaultOptions" : { + "codeCoverage" : { + "targets" : [ + { + "containerPath" : "container:ElementX.xcodeproj", + "identifier" : "C0FAEB81CFD9776CD78CE489", + "name" : "ElementX" + } + ] + }, "environmentVariableEntries" : [ { "key" : "INTEGRATION_TESTS_HOST", diff --git a/changelog.d/pr-1398.build b/changelog.d/pr-1398.build new file mode 100644 index 000000000..7eb040005 --- /dev/null +++ b/changelog.d/pr-1398.build @@ -0,0 +1 @@ +Specify the target for code coverage in the Integration Tests plan. \ No newline at end of file diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 4ab49f11e..c7063cd7c 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -154,6 +154,8 @@ end lane :integration_tests do + clear_derived_data() + create_simulator_if_necessary( name: "iPhone 14 Pro", type: "com.apple.CoreSimulator.SimDeviceType.iPhone-14-Pro" @@ -173,6 +175,7 @@ lane :integration_tests do output_directory: "./fastlane/test_output", proj: "ElementX.xcodeproj", scheme: "IntegrationTests", + binary_basename: "ElementX.app" ) end