diff --git a/IntegrationTests/SupportingFiles/IntegrationTests.xctestplan b/IntegrationTests/SupportingFiles/IntegrationTests.xctestplan index 3bbfab9b18..8a3dfdefc9 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 0000000000..7eb0400057 --- /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 4ab49f11e3..c7063cd7c6 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