Skip to content

Instantly share code, notes, and snippets.

@toshiossada
Created August 5, 2022 16:01
import 'package:flutter_gherkin/flutter_gherkin.dart'; // notice new import name
import 'package:flutter_test/flutter_test.dart';
import 'package:gherkin/gherkin.dart';
// The application under test.
import 'package:intergration_test/main.dart' as app;
part 'gherkin_suite_test.g.dart';
@GherkinTestSuite()
void main() {
executeTestSuite(
configuration: FlutterTestConfiguration(
stepDefinitions: [],
order: ExecutionOrder.alphabetical,
features: [RegExp('features/*.*.feature')],
reporters: [
StdoutReporter(MessageLevel.error)
..setWriteLineFn(print)
..setWriteFn(print),
ProgressReporter()
..setWriteLineFn(print)
..setWriteFn(print),
TestRunSummaryReporter()
..setWriteLineFn(print)
..setWriteFn(print),
JsonReporter(
writeReport: (_, __) => Future<void>.value(),
)
],
),
appMainFunction: (World world) async => app.main(),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment