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

Test selections #364

Open
plexus opened this issue Nov 30, 2022 · 0 comments
Open

Test selections #364

plexus opened this issue Nov 30, 2022 · 0 comments
Labels
feature New functionality

Comments

@plexus
Copy link
Member

plexus commented Nov 30, 2022

This is a feature we've been thinking/talking about for quite some time, see an earlier draft pitch document here: https://nextjournal.com/lambdaisland/pitch-test-selections

Test selections are a way of encoding subsets of tests, across all tests/suites that are defined, e.g. by metadata matching, by name, by type. One can then choose to run all tests within such a selection (similar to how you choose to run tests within a suite), or to run all tests that don't match a certain selection. This means that selections can be negated, which fixes the common anti-pattern of defining suites that either match or don't match a certain criteria, in order to have complimentary suites (e.g. fast vs slow tests).

This would also provide a solution to #31 by having the concept of a "default" selection, that defaults to all test suites, but can be redefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
Status: 🎅 New features
Development

No branches or pull requests

1 participant