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 test_path_filter and deprecate test_file_filter. #118

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

ltratt
Copy link
Member

@ltratt ltratt commented Jan 22, 2024

test_file_filter filters out non-file things, which makes it impossible to, for example, use directories as tests.

Rather than change the semantics of test_file_filter, this commit adds test_path_filter which doesn't filter out non-file things, but is otherwise identical to test_file_filter. It also marks test_file_filter as deprecated, with a generic way to migrate code to test_path_filter, allowing users to mechanically migrate their code.

@jacob-hughes
Copy link
Contributor

Great. Thank you!

@jacob-hughes jacob-hughes added this pull request to the merge queue Jan 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 22, 2024
@ltratt
Copy link
Member Author

ltratt commented Jan 22, 2024

@jacob-hughes I always forget that "examples" aren't run by cargo test! Fixed in 4f8de3d.

@jacob-hughes
Copy link
Contributor

LGTM please squash

`test_file_filter` filters out non-file things, which makes it
impossible to, for example, use directories as tests.

Rather than change the semantics of `test_file_filter`, this commit adds
`test_path_filter` which doesn't filter out non-file things, but is
otherwise identical to `test_file_filter`. It also marks
`test_file_filter` as deprecated, with a generic way to migrate code to
`test_path_filter`, allowing users to mechanically migrate their code.
@ltratt
Copy link
Member Author

ltratt commented Jan 22, 2024

Squashed.

@jacob-hughes jacob-hughes added this pull request to the merge queue Jan 22, 2024
Merged via the queue into softdevteam:master with commit 557bc48 Jan 22, 2024
2 checks passed
@ltratt ltratt deleted the path_filter branch July 18, 2024 15:01
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.

2 participants