flutter_gherkin icon indicating copy to clipboard operation
flutter_gherkin copied to clipboard

World.attach doesn't work for scenario attachments in integration_test.

Open vrnvorona opened this issue 2 years ago • 0 comments
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.

vrnvorona avatar May 16 '23 08:05 vrnvorona