jonsamwell/flutter_gherkin

Reporter doesn't await for test.onStarted callback

SashaKryzh opened this issue · 4 comments

The test.onStarted callback is not finished, but the feature.onStarted is already called.

Also, as I understood none of them are awaited. So what is the point of making them async?

My goal is to report data to the server, and I need to receive IDs for each feature, scenario, and step and later use these ids to finish them on the server.

flutter_gherkin: 3.0.0-rc.16

What about this line

_safeInvokeFuture(() async => await reporter.test.onStarted.invoke());

Fixed in 3.0.0-rc.17