-
-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support extra test runner output. (#11741)
Test runners may, depending on their runtime configuration, output extra data that we don't know about, but the user may want to see. For example, pytest may be configured to run the pytest-html plugin, which will emit an HTML report into the process execution sandbox, and we won't pick it up from there. This change adds generic support for "extra output" from a test runner. All the user needs to do is ensure this output goes somewhere where the appropriate test execution rule can find it. Pants will dump any extra output it finds into dist/. In the specific case of pytest, we look for this output in the extra-output/ subdir. This means that users must ensure that output is directed there (e.g., using the --html=extra-output/report.html flag to pytest). We must document this, of course. This change also enables pytest-html in the Pants repo itself, as a proof of concept. To get a report: ./pants test <tgt> -- --html=extra-output/report.html [ci skip-rust] [ci skip-build-wheels]
- Loading branch information
Showing
5 changed files
with
48 additions
and
1 deletion.
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
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