Is there a way to have scenarios be skipped tests based on the When condition 
or some other preconditions?

My situation is the following. I'm testing an Eclipse application that is meant 
to be deployed in various environments (e.g. linux, mac, windows) and I would 
like to group all the tests relevant to one particular aspect of the system in 
the same story file. However when I'm executing these stories I would like that 
only the tests relevant my execution environment to be executed.

At this point I'm achieving by doing setting a flag in my @When methods and 
then checking it in the @Then method but this is rather hideous so I figure 
that there has to be a better way :)

Thx for your help

Pascal

Reply via email to