Search in sources :

Example 1 with TestSourceParsed

use of io.cucumber.plugin.event.TestSourceParsed in project cucumber-jvm by cucumber.

the class CucumberExecutionContext method beforeFeature.

public void beforeFeature(Feature feature) {
    log.debug(() -> "Sending test source read event for " + feature.getUri());
    bus.send(new TestSourceRead(bus.getInstant(), feature.getUri(), feature.getSource()));
    bus.send(new TestSourceParsed(bus.getInstant(), feature.getUri(), singletonList(feature)));
    bus.sendAll(feature.getParseEvents());
}
Also used : TestSourceRead(io.cucumber.plugin.event.TestSourceRead) TestSourceParsed(io.cucumber.plugin.event.TestSourceParsed)

Aggregations

TestSourceParsed (io.cucumber.plugin.event.TestSourceParsed)1 TestSourceRead (io.cucumber.plugin.event.TestSourceRead)1