-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Currently looks like that there is only support for built-in tags (ignore and only) but despite you can tag any test with tagged that has not use.
I was wondering if there is appetite to support filtering based on the test tags, that will allow to write something like this using a syntax similar to Github search where the (space) is the AND, the , is the OR and ! for NOT:
testOnly * -- -t foo // Run all the tests tagged with foo
testOnly * -- -t !foo // Run all the tests not tagged with foo
testOnly * -- -t foo,bar // Run all the tests tagged with foo or bar
testOnly * -- -t foo,!bar // Run all the tests tagged with foo or not tagged with bar
testOnly * -- -t (foo,bar) baz // Run all the tests tagged with foo or bar and the tests tagged with baz
Additionally, it would be useful to support wildcards for pattern matching:
testOnly * -- -t bug-* // Run all tests tagged with bug-123, bug-critical, etc.
testOnly * -- -t *:prod // Run all tests tagged with env:prod, db:prod, etc.
testOnly * -- -t test-? // Run all tests tagged with test-1, test-a, etc. (single character)
This would be really useful to my use case and I am happy to contribute if possible.
majk-p
Metadata
Metadata
Assignees
Labels
No labels