Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write test reports to a standard location under the distdir. #14929

Merged
merged 2 commits into from
Mar 28, 2022

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Mar 28, 2022

Now users can turn reporting on with --report, without having
to fiddle with the location, but can still modify that location
if necessary. This is similar to how coverage reports work.

Also fixes an issue where we hardcoded dist/ as the default for
coverage reports, instead of using distdir.

Note that user can, as before, set a custom path outside the
distdir (as they can for coverage reports), but this change makes
it more likely the reports will go to dist/, which is probably gitignored.

[ci skip-rust]

[ci skip-build-wheels]

Now users can turn reporting on with --report, without having
to fiddle with the location, but can still modify that location
if necessary. This is similar to how coverage reports work.

Also fixes an issue where we hardcoded `dist/` as the default for
coverage reports, instead of using distdir.

Note that user can, as before, set a custom path outside the
distdir (as they can for coverage reports), but this change makes
it more likely the reports will go to dist/, which is probably
gitignored, instead of to some arbitrary location that may not be.

Basically it makes it easier to turn out reports without creating
complications, and makes use of dist/ more standardized.

[ci skip-rust]

[ci skip-build-wheels]
@benjyw
Copy link
Contributor Author

benjyw commented Mar 28, 2022

Addresses #14806

Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elegant solution for deprecation policy. Thanks!

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@benjyw benjyw merged commit e19bd12 into pantsbuild:main Mar 28, 2022
@benjyw benjyw deleted the text_xml_reports_under_dist branch March 28, 2022 20:13
stuhood added a commit to stuhood/pants that referenced this pull request Jun 28, 2022
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants