use of cucumber.runtime.StepDefinitionMatch in project allure-cucumberjvm by allure-framework.
the class AllureReporter method match.
@Override
public void match(Match match) {
if (match instanceof StepDefinitionMatch) {
this.match = (StepDefinitionMatch) match;
Step step = extractStep(this.match);
synchronized (gherkinSteps) {
while (gherkinSteps.peek() != null && !isEqualSteps(step, gherkinSteps.peek())) {
fireCanceledStep(gherkinSteps.remove());
}
if (isEqualSteps(step, gherkinSteps.peek())) {
gherkinSteps.remove();
}
}
String name = this.getStepName(step);
ALLURE_LIFECYCLE.fire(new StepStartedEvent(name).withTitle(name));
createDataTableAttachment(step.getRows());
}
}
Aggregations