Skip to content

Commit 1f63ecc

Browse files
committed
- Fix #231 - Removed the use of explicitly calling pumpAndSettle in the pre-defined steps in favour of the implicit pumpAndSettle calls used in the WidgetTesterAppDriverAdapter.
- Added ability to add a `appLifecyclePumpHandler` to override the default handler that determines how the app is pumped during lifecycle events. Useful if your app has a long splash screen etc. Parameter is on `executeTestSuite`. - Added ability to ensure feature paths are relative when generating reports `useAbsolutePaths` on the `GherkinTestSuite` attribute * BREAKING CHANGE: The parameters on `executeTestSuite` are now keyed to allow for the above changes
1 parent 70f1c6c commit 1f63ecc

21 files changed

+295
-283
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [3.0.0-rc.11] - 24/06/2022
2+
- Fix #231 - Removed the use of explicitly calling `pumpAndSettle` in the pre-defined steps in favour of the implicit `pumpAndSettle` calls used in the `WidgetTesterAppDriverAdapter`.
3+
- Added ability to add a `appLifecyclePumpHandler` to override the default handler that determines how the app is pumped during lifecycle events. Useful if your app has a long splash screen etc. Parameter is on `executeTestSuite`.
4+
- Added ability to ensure feature paths are relative when generating reports `useAbsolutePaths` on the `GherkinTestSuite` attribute
5+
6+
* BREAKING CHANGE: The parameters on `executeTestSuite` are now keyed to allow for the above changes
7+
18
## [3.0.0-rc.10] - 23/06/2022
29

310
- Fix #195: Adding missing export for `wait_until_key_exists_step.dart`

example_with_integration_test/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# generate the test suite
33
flutter pub run build_runner build --delete-conflicting-outputs
44
5+
# re-generate
6+
flutter pub run build_runner clean
7+
flutter pub run build_runner build --delete-conflicting-outputs
8+
59
# run the tests
610
flutter drive --driver=test_driver/integration_test_driver.dart --target=integration_test/gherkin_suite_test.dart
711
```

example_with_integration_test/integration_test/gherkin/steps/expect_todos_step.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ final thenIExpectTheTodos = then1<GherkinTable, FlutterWorld>(
99
expect(context.configuration.timeout, isNotNull);
1010
expect(context.configuration.timeout!.inSeconds, 5);
1111

12+
await context.world.appDriver.waitForAppToSettle();
13+
1214
// get the parent list
1315
final listTileFinder = context.world.appDriver.findBy(
1416
ListTile,
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import 'package:flutter_gherkin/flutter_gherkin.dart';
2+
import 'package:flutter_test/flutter_test.dart';
23
import 'package:gherkin/gherkin.dart';
34

45
import 'gherkin/configuration.dart';
56

67
part 'gherkin_suite_test.g.dart';
78

8-
@GherkinTestSuite()
9+
@GherkinTestSuite(
10+
useAbsolutePaths: false,
11+
)
912
void main() {
1013
executeTestSuite(
11-
gherkinTestConfiguration,
12-
appInitializationFn,
14+
appMainFunction: appInitializationFn,
15+
configuration: gherkinTestConfiguration,
1316
);
1417
}

0 commit comments

Comments
 (0)