Closed ncreated closed 2 months ago
Branch report: ncreated/chore/ci-visibility-shadow-build
Commit report: 5fa648b
Test service: dd-sdk-ios
:white_check_mark: 0 Failed, 1848 Passed, 0 Skipped, 1m 15.14s Total Time
blocking/ We also need to pass CI Provider variables to all tests.
What and why?
📦 This PR enables (back*) the Test Visibility instrumentation for our unit tests. With our tests being more stable in GitLab, we can leverage this instrumentation for more visibility into their performance and runs.
*
we disabled Test Visibility a while ago, due to increased number of flaky test runs in Bitrise CI.How?
Following the documentation, config ENVs are injected to every
xcscheme
and their values are exported intest.sh
. Each scheme is configured to gather code coverage data, so we can later enable ITR.🐶 This PR only integrates
dd-sdk-swift-testing
to an extra CI job meant for shadowing regular iOS unit tests runs. If we find our tests stable, we will integrate it to regular "Unit Test" jobs.Unfortunately, there is no simpler way than applying the same configuration to all 14 schemes. The fact that we centralize tests execution through
test.sh
helps to control values, but the actual ENV injection must include forwarding it from Environment Variables list inxscheme
definition. As explained in docs, the basicDD_TEST_RUNNER=1 ... xcodebuild test -scheme ...
only works forPackage.swift
and not for Xcode project.Review checklist