When doing bdd/testing with JBehave/Thucydides I would like to skip certain scenarios that I know are working temporarily. Eventually, I want to re run the whole test suite. However, as I am developing, re-running old tests just to get to new tests I have written takes too much time.
Here is an example of what I am talking about:
loggingIn.story:
Scenario: logging in as customer
...
Scenario: logging in as admin
...
I know first scenario works, how can I skip it instead of regoing through it when I run the story using JUnit?
From the JBehave website links Meta Info, Meta Filtering
I gathered I could do something as follows:
loggingIn.story:
Scenario: logging in as customer
Meta:
@ignored true
...
Scenario: logging in as admin
Meta:
@ignored false
...
Then when running the test as a JUnit test case, I passed a jvm argument as follows:
-Dmetafilter="+ignored"
.
However, this skips both scenarios instead of just the first.