Cucumber how to find if a feature file has executed? Any Java method?
问题 @Before public void quit_if_tagged_scenario_failed(Scenario scenario) { if (!isTagged(scenario) && prevScenarioFailed) throw new IllegalStateException("An important scenario has failed! Cucumber wants to quit."); } I'm using this method to check if the previuos scenario failed. If failed I want to skip all the scenarios in that feature file.So the problem here is if I’m running two feature files the last scenario in the feature file failed and the first step of next feature will also fails