greghaskins / spectrum

A BDD-style test runner for Java 8. Inspired by Jasmine, RSpec, and Cucumber.
MIT License
145 stars 23 forks source link

add example for Gherkin tags #124

Closed braghome closed 7 years ago

braghome commented 7 years ago

https://github.com/greghaskins/spectrum/blob/1.2.0/docs/FocusingAndIgnoring.md is for some reason missing a Gerkin example. No filtering support means very difficult to maintain a large number of BDD scenarios on a CI server.

braghome commented 7 years ago

final Block _function = () -> { final ParameterizedBlock.TwoArgBlock < String, String > _function_1 = (String decides, String actualStatus) -> { final Block _function_2 = () -> {}; Gherkin.given("Given a bla that does not have sticky agent relationship with bla", _function_2); }; Gherkin. < ParameterizedBlock.TwoArgBlock < String, String >> scenarioOutline("As an bla I want to be able to invite bla bla bla", _function_1, Gherkin. < ParameterizedBlock.TwoArgBlock < String, String >> withExamples( Gherkin. < String, String > example("reject", "UNKNOWN_"), Gherkin. < String, String > example("reject", "NOT_WORKING_WITH_"), Gherkin. < String, String > example("reject", "NOT_SHOPPING"), Gherkin. < String, String > example("reject", "NONE_OF_THE_ABOVE"), Gherkin. < String, String > example("reject", "NO_REASON_GIVEN"))); }; Gherkin.feature("Bla can invite bla bla", Configure.with(Configure.tags(""), _function)); } never mind got it