-
Story
-
Resolution: Done
-
Medium
-
None
-
None
-
VVP- Frankfurt 2
Today, when the @categories decorator is applied to a test, then the user must specify all categories via the --categories property to trigger that tests.
There may be situations where you want the test to be triggered if any of categories match.
For example, a test mapped to categories A and B should be triggered if either if those categories are selected via the command line.
The proposed syntax for this will be:
@categories(any_of=("cat1", "cat2"))
At this time, using the all inclusive list (i.e. default behavior) along with the any_of list will not be supported and a RuntimeError will be raised if this condition is encountered.
Ex: @categories("A", any_of=("B", "C)) <- RuntimeError