Re: [jbehave-user] graceful stop after first failed story ?

2012-03-22 Thread Mauro Talevi
Hi Steve, you can set EmbedderControls.doIgnoreFailureInStories(false) Or you can set the property ignoreFailureInStories=false via Maven or Ant in command-line. Cheers On 21/03/2012 19:18, Maring, Steve X. -ND wrote: I see how from within a StoryRunner I can override the run(...) and

RE: [jbehave-user] graceful stop after first failed story ?

2012-03-22 Thread Maring, Steve X. -ND
I'm actually doing ... configuredEmbedder().embedderControls() .doGenerateViewAfterStories(true) .doIgnoreFailureInStories(false) .doIgnoreFailureInView(true); ... but it seems to keep running stories after

Re: [jbehave-user] graceful stop after first failed story ?

2012-03-22 Thread Mauro Talevi
It's possible that there were issues on 3.1.1. But why are you not on the latest stable version? Also bear in mind that the Maven or Ant config (command-line) will override anything configured via Java. On 22/03/2012 12:38, Maring, Steve X. -ND wrote: I'm actually doing ...

Re: [jbehave-user] Re: Commenting out scenarios

2012-03-22 Thread rakesh mailgroups
still struggling with this I've marked one (of the two scenarios in my file) with @foo and now want to exclude it from being run. I looked at the configurations for running a JUnit test in Intellij and my options are: 1. pass jvm options 2. pass environment variables I created an

Re: [jbehave-user] Re: Commenting out scenarios

2012-03-22 Thread Mauro Talevi
Hi, yes, you can filter meta tags both at scenario and story level. Have a look at the threads examples, e.g. mvn clean install -Dmeta.filter='+outcome failed' will only pick up the scenario with Meta: @outcome failed If you want to specify the meta filter programmatically, use the

Re: [jbehave-user] Re: Commenting out scenarios

2012-03-22 Thread rakesh mailgroups
here's a snippet: Scenario: Genesis has valid Facebook token @skip Given Genesis has token '1234567890' with Facebook token 'fb_token' When the iPad app requests POST to url /saturn/login with payload: On Thu, Mar 22, 2012 at 4:38 PM, Alex Lehmann alexl...@gmail.com wrote: there may be a

[jbehave-user] Re: Commenting out scenarios

2012-03-22 Thread Alex Lehmann
You are missing the Meta: keyword I think, e.g. Scenario: Genesis has valid Facebook token Meta: @skip Given ... On 22.03.2012 17:42, rakesh mailgroups wrote: here's a snippet: Scenario: Genesis has valid Facebook token @skip Given Genesis has token '1234567890' with Facebook token 'fb_token'

Re: [jbehave-user] Re: Commenting out scenarios

2012-03-22 Thread rakesh mailgroups
finally, success!!! Thanks for that. Rakesh On Thu, Mar 22, 2012 at 4:55 PM, Alex Lehmann alexl...@gmail.com wrote: You are missing the Meta: keyword I think, e.g. Scenario: Genesis has valid Facebook token Meta: @skip Given ... On 22.03.2012 17:42, rakesh mailgroups wrote: here's a