2

I am using cucumber-jvm with appium using eclipse and junit.

Some of my tests stop working halfway through. They do not overtly fail the junit tests but instead stop working and ignore the remaining steps.

When I look at these steps in junit (through eclipse) they appear to have passed, until I drill into them and see steps have been ignored.

Is there a way to mark any test scenarios with ignored steps as failures rather than as passes?

1 Answer 1

5

I presume you have a JUnit test case with an @CucumberOptions annotation on it. If you have this, you should be able to make ignored tests fail the build by setting strict=true. e.g.

@RunWith(Cucumber.class) @CucumberOptions(strict = true) public class CucumberRunnerTest { } 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.