default_filter = Filter() # Run all Multitest named `Primary` and all of its suites & testcases. pattern_filter_1 = Pattern('Primary') # Run `Alpha` suite (and all testcases) from `Primary` multitest. pattern_filter_2 = Pattern('Primary:Alpha') # Run `Alpha.test_1` from `Primary` multitest. pattern_filter_3 = Pattern('Primary:Alpha:test_1') # Run all testcases named `test_1` from all suites & multitests. pattern_filter_4 = Pattern('*:*:test_1') # Multi-pattern filtering, runs multitests with names `Primary` and `Secondary` pattern_filter_5 = Pattern.any('Primary', 'Secondary') # Run all multitests that end with `ary` (Primary & Secondary) pattern_filter_6 = Pattern('*ary') # Tag based filtering, runs all testcases that are tagged with `server`. # Suite level tags propagate to testcases as well. tag_filter_1 = Tags('server') # Run all testcases with the named tag: `color = blue` tag_filter_2 = Tags({'color': 'blue'}) # Multi tag filtering, run all testcases tagged with `server` OR `client`. tag_filter_3 = Tags(('server', 'client')) # Multi tag filtering, run all testcases tagged with
default_filter = Filter() # Run all Multitest named `Primary` and all of its suites & testcases. pattern_filter_1 = Pattern("Primary") # Run `Alpha` suite (and all testcases) from `Primary` multitest. pattern_filter_2 = Pattern("Primary:Alpha") # Run `Alpha.test_1` from `Primary` multitest. pattern_filter_3 = Pattern("Primary:Alpha:test_1") # Run all testcases named `test_1` from all suites & multitests. pattern_filter_4 = Pattern("*:*:test_1") # Multi-pattern filtering, runs multitests with names `Primary` and `Secondary` pattern_filter_5 = Pattern.any("Primary", "Secondary") # Run all multitests that end with `ary` (Primary & Secondary) pattern_filter_6 = Pattern("*ary") # Tag based filtering, runs all testcases that are tagged with `server`. # Suite level tags propagate to testcases as well. tag_filter_1 = Tags("server") # Run all testcases with the named tag: `color = blue` tag_filter_2 = Tags({"color": "blue"}) # Multi tag filtering, run all testcases tagged with `server` OR `client`. tag_filter_3 = Tags(("server", "client")) # Multi tag filtering, run all testcases tagged with