fix(runner): Ensure scenario support files (world etc) as always disposed ensure when test throws error
This commit is contained in:
parent
ed88094462
commit
3c0e1c6270
|
@ -1 +1 @@
|
|||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-09-15 14:52:31.748089","version":"2.5.0"}
|
||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"android":[{"name":"integration_test","path":"C:\\\\Google\\\\flutter\\\\packages\\\\integration_test\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"integration_test","dependencies":[]}],"date_created":"2021-09-16 11:36:24.117283","version":"2.5.0"}
|
|
@ -1,3 +1,7 @@
|
|||
## [3.0.0-rc.5] - 22/06/2021
|
||||
|
||||
- Ensure scenario support files (world etc) as always disposed ensure when test throws error
|
||||
|
||||
## [3.0.0-rc.4] - 21/06/2021
|
||||
|
||||
- Removed debug code
|
||||
|
|
|
@ -150,6 +150,7 @@ abstract class GherkinIntegrationTestRunner {
|
|||
tester,
|
||||
);
|
||||
|
||||
try {
|
||||
await hook.onBeforeScenario(
|
||||
configuration,
|
||||
name,
|
||||
|
@ -177,7 +178,7 @@ abstract class GherkinIntegrationTestRunner {
|
|||
);
|
||||
|
||||
await runTest(dependencies);
|
||||
|
||||
} finally {
|
||||
await reporter.onScenarioFinished(
|
||||
ScenarioFinishedMessage(
|
||||
name,
|
||||
|
@ -192,11 +193,12 @@ abstract class GherkinIntegrationTestRunner {
|
|||
scenarioTags,
|
||||
);
|
||||
|
||||
cleanupScenarioRun(dependencies);
|
||||
|
||||
if (onAfter != null) {
|
||||
await onAfter();
|
||||
}
|
||||
|
||||
cleanupScenarioRun(dependencies);
|
||||
}
|
||||
},
|
||||
timeout: scenarioExecutionTimeout,
|
||||
);
|
||||
|
|
|
@ -7,14 +7,14 @@ packages:
|
|||
name: _fe_analyzer_shared
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "25.0.0"
|
||||
version: "26.0.0"
|
||||
analyzer:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: analyzer
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.2.0"
|
||||
version: "2.3.0"
|
||||
archive:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -249,7 +249,7 @@ packages:
|
|||
name: pubspec_parse
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.0"
|
||||
version: "1.1.0"
|
||||
sky_engine:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: flutter_gherkin
|
||||
description: A Gherkin / Cucumber parser and test runner for Dart and Flutter
|
||||
version: 3.0.0-rc.4
|
||||
version: 3.0.0-rc.5
|
||||
homepage: https://github.com/jonsamwell/flutter_gherkin
|
||||
|
||||
environment:
|
||||
|
|
Loading…
Reference in New Issue