// Fixture for tool/memwatch/quiet_test.sh: one passing test, one plain // expectation failure and one widget-test failure that prints far more than // the quiet summary may show. It lives outside test/ so the app suite skips it. import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('passing neighbour', () => expect(1, 1)); test('plain expectation fails', () { expect('memwatch-actual', 'memwatch-expected'); }); testWidgets('widget failure with long output', (tester) async { for (var i = 0; i < 2000; i++) { // ignore: avoid_print print('memwatch-flood line $i ${'x' * 60}'); } await tester.pumpWidget(const Text('memwatch', textDirection: TextDirection.ltr)); expect(find.text('memwatch-missing-widget'), findsOneWidget); }); }