Skip to content

Comments

Add internal rules for testing#7369

Closed
zanieb wants to merge 6 commits intomainfrom
zanie/rule-tests
Closed

Add internal rules for testing#7369
zanieb wants to merge 6 commits intomainfrom
zanie/rule-tests

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