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

Make Arguments::is_filtered_out public #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jstarks
Copy link

@jstarks jstarks commented Jan 13, 2025

Some test binaries want to offer extensions to the libtest interface that operate on a set of tests. For example, a test binary may want to allow the user to request the set of environmental dependencies (e.g., external artifacts to download) for running a set of tests. In such cases, it is desirable to allow the user to specify test filters using the same interface for filtering tests to run.

To this end, expose the existing Arguments::is_filtered_out function publicly. This allows the test binary to apply the same filtering logic without having to call and somehow extract the results from run.

Fixes #37.

Some test binaries want to offer extensions to the `libtest` interface
that operate on a set of tests. For example, a test binary may want to
allow the user to request the set of environmental dependencies (e.g.,
external artifacts to download) for running a set of tests. In such
cases, it is desirable to allow the user to specify test filters using
the same interface for filtering tests to run.

To this end, expose the existing `Arguments::is_filtered_out` function
publicly. This allows the test binary to apply the same filtering logic
without having to call and somehow extract the results from `run`.
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.

Public API for filtering without running
1 participant