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

Add internal rules for testing #7369

Closed
wants to merge 6 commits into from
Closed

Add internal rules for testing #7369

wants to merge 6 commits into from

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Sep 13, 2023

Follow-up to discussion in #7210

Moves integration tests from using rules that are transitively in nursery / preview groups to dedicated test rules that only exist during development. These rules always raise violations (they do not require specific file behavior).

Uses features instead of cfg(test) for cross-crate support per rust-lang/cargo#8379

@zanieb
Copy link
Member Author

zanieb commented Sep 13, 2023

Need to filter the rules from the schema, probably by editing the proc macro.

Copy link
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

Looks okay to me

@zanieb
Copy link
Member Author

zanieb commented Jan 31, 2024

Replaced by #9747

@zanieb zanieb closed this Jan 31, 2024
zanieb added a commit that referenced this pull request Feb 1, 2024
Updated implementation of #7369
which was left out in the cold.

This was motivated again following changes in #9691 and #9689 where we
could not test the changes without actually deprecating or removing
rules.

---

Follow-up to discussion in #7210

Moves integration tests from using rules that are transitively in
nursery / preview groups to dedicated test rules that only exist during
development. These rules always raise violations (they do not require
specific file behavior). The rules are not available in production or in
the documentation.

Uses features instead of `cfg(test)` for cross-crate support per
rust-lang/cargo#8379
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.

3 participants