flutter_gherkin
flutter_gherkin copied to clipboard
World.attach doesn't work for scenario attachments in integration_test.
trafficstars
@override
Future<void> onAfterScenario(
TestConfiguration config,
String scenario,
Iterable<Tag> tags, {
bool passed = true,
}) async {
world.attach(
world.container.read(failedMocksProvider).join('/n'),
'text/plain',
);
}
I have following Hook (I save world earlier) which doesn't attach anything to the json. In runner only step.onFinished invoke function to get attachments.