/gherkin_suite_test.dart Secret
Created
August 5, 2022 16:01
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_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