Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
PytestRun
to handle multiple source roots. (#5400)
Although an attempt was made to handle multiple source roots when mapping python source paths for `py.test` and `coverage`, there were ambiguities in the `coverage` mapping in particular leading to the inability to run tests and collect coverage for code under test across all python source roots. The python task pipeline is amended to produce a source pex per source root, allowing `PytestRun` in turn to be source root aware in its execution of coverage reports and a multi-source-root test is added to ensure this case is handled. In addition, resource targets are duplicated to all source pexes containing python code that needs access to the resources. Previously, unrelated resources could also be added to the source pexes (e.g: a Java resource) and this is fixed as well. Fixes #5314 Fixes #5401
- Loading branch information
Showing
7 changed files
with
441 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.