cucumber/cucumber-jvm — pull request #363 by kimsaabyepedersen (2012-07-21 11:01:40+00:00)
Title: Fix for issue 359

Hi, I have fixed issue 359.

Now you can write

@Before //(cucumber one)
pubic void setup(){
Assume.assumeTrue(weAreInPreProductionEnvironment);
}

and the scenario will be marked as ignored (but the test will pass) if weAreInPreProductionEnvironment is false.

I have not implement assume functionality in the individual steps, as I think that does not make sense in Cucumber where one test consists of possibly many steps (whereas in normal unit tests tests are normally self contained and disabling one makes sense).

I have also added some tests.