BDD in Flutter article code generated files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GENERATED CODE - DO NOT MODIFY BY HAND | |
// ignore_for_file: unused_import, directives_ordering | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
import './step/the_app_is_running.dart'; | |
import './step/i_see_text.dart'; | |
void main() { | |
group('Counter', () { | |
testWidgets('Initial counter value is 0', (tester) async { | |
await theAppIsRunning(tester); | |
await iSeeText(tester, '0'); | |
}); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_test/flutter_test.dart'; | |
Future<void> iSeeText(WidgetTester tester, String text) async { | |
expect(find.text(text), findsOneWidget); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:bdd_showcase_app/main.dart'; | |
Future<void> theAppIsRunning(WidgetTester tester) async { | |
await tester.pumpWidget(MyApp()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment