Re: [jbehave-user] Conditionally skip story using meta tag

2014-07-21 Thread Brent Barker
Great, thanks! On Sat, Jul 12, 2014 at 1:18 AM, Mauro Talevi wrote: > Hi Brent, > > this is an interesting use case. I've created two issues: > > http://jira.codehaus.org/browse/JBEHAVE-1032 to make the MetaMatcher > injectable > > http://jira.codehaus.org/browse/JBEHAVE-1033 to add JiraMetaM

Re: [jbehave-user] Conditionally skip story using meta tag

2014-07-12 Thread Mauro Talevi
Hi Brent, this is an interesting use case. I've created two issues: http://jira.codehaus.org/browse/JBEHAVE-1032 to make the MetaMatcher injectable http://jira.codehaus.org/browse/JBEHAVE-1033 to add JiraMetaMatcher in jbehave-rest. If you could provide a pull request for JBEHAVE-1033 it'

Re: [jbehave-user] Conditionally skip story using meta tag

2014-07-11 Thread Brent Barker
Great thank you for your response! I'd like to avoid editing the MetaFilter class if I can. Making it injectable would be a great feature to have. Using the GroovyMetaMatcher is not working for me. I need to call a class in my local repo, but the groovy script is not able to resolve the class. I

Re: [jbehave-user] Conditionally skip story using meta tag

2014-07-10 Thread Mauro Talevi
The recommended way is to implement your own MetaMatcher. Currently, you need to extend createMetaMatcher(String) method in MetaFilter although we could make it injectable. Alternatively, use the GroovyMetaMatcher to invoke a groovy script that will do you check. Cheers On 10/07/2014 19:49

[jbehave-user] Conditionally skip story using meta tag

2014-07-10 Thread Brent Barker
Hi everyone! Is there a easy way to conditionally skip a story using a meta tag? For example, I want to annotate my story with @bug BUG- and then check if that bug is still open or not. If it is still open, skip the scenario/story. Right now I am extending RegexStoryParser, calling super.Pars