Skip to content

Conversation

@sebastianv1
Copy link
Contributor

When using a macos_unit_test target whose test sources depend on a swift_compiler_plugin or swift_binary target, its sources are missing from the coverage manifest COVERAGE_MANIFEST env var that's passed to lcov.

This change mirrors what the other targets do to add coverage instrumentation info so that they are available in the resulting coverage file.

…gin`

When using a `macos_unit_test` target whose test sources depend on a `swift_compiler_plugin` or `swift_binary` target, its sources are missing from the coverage manifest `COVERAGE_MANIFEST` env var that's passed to lcov.

This change mirrors what the other targets do to add coverage instrumentation info so that they are available in the resulting coverage file.
@keith keith merged commit 8be413e into bazelbuild:master Apr 25, 2025
12 checks passed
luispadron referenced this pull request May 18, 2025
This can be helpful for integration tests that contain swift_binary targets that are invoked in different configurations.

PiperOrigin-RevId: 707265068
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants