Hi,
in effect the default meta matcher currently only supports the *
directive. We could extend it but given we have a more powerful
groovy-based meta matcher, it's best you use that:
MetaFilter filter = new MetaFilter("groovy: (theme == 'T1' |
theme == 'T2')");
assertTrue(filter.allow(new Meta(asList("theme T1"))));
assertTrue(filter.allow(new Meta(asList("theme T2"))));
assertFalse(filter.allow(new Meta(asList("theme T3"))));
Note that you need the groovy runtime in your classpath.
Cheers
On 22/08/2013 19:29, Manpreet Ratra (CS) wrote:
Hi All,
I am trying to set meta filter but having hard time doing that.
I have a set of scenarios say "10" in a story file from Level L1 --
L10, out of this I only need to execute L1 & L2 and I tried the
following which doesn't work --
meta.filter=+Level L1 L2 - Nothing executed
meta.filter=+LevelL1, +Level L2 -- only executes the last one i.e. L2
meta.filter=+LevelL* - executes all L1 -- L10
Is there any other way I can do this.
Thanks,
Manpreet