Lets take a very generic flutter test of the default flutter application from the basic tutorial (https://techwithsach.com/code-snippets/default-flutter-application-main-dart/):

import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart';

void main() {
group('Counter App', () {
final counterTextFinder = find.byValueKey('counter');
final buttonFinder = find.byValueKey('increment');

FlutterDriver driver;

setUpAll(()…

Artur Korobeynyk

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store