Skip to content

Instantly share code, notes, and snippets.

@BouweCeunen
Created July 19, 2020 14:37
Show Gist options
  • Save BouweCeunen/6a4cb2bc44d88f542b206a1c4eb63d14 to your computer and use it in GitHub Desktop.
Save BouweCeunen/6a4cb2bc44d88f542b206a1c4eb63d14 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:<package>/App.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(App());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment