spot icon indicating copy to clipboard operation
spot copied to clipboard

Add generateTimeline();

Open passsy opened this issue 1 year ago • 0 comments

Sometimes I want to see the timeline of a successful app. One common way to do this is adding this line at the end of the test (or beginning)

    testWidgets('My test', (tester) async {
      // testCode
      // ...
      timeline.mode = TimelineMode.always;
    });

Instead I'd like to call a method to print me the timeline at any point in the test as it currently is. Similar to takeScreensho().

    testWidgets('My test', (tester) async {
      // testCode
      await generateTimeline();
      // ...
      await generateTimeline();
    });

passsy avatar Dec 20 '24 14:12 passsy