diff --git a/packages/golden_toolkit/CHANGELOG.md b/packages/golden_toolkit/CHANGELOG.md index a7a2dc4..a4da266 100644 --- a/packages/golden_toolkit/CHANGELOG.md +++ b/packages/golden_toolkit/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## 0.10.0 + +This release has a few updates & changes. + +- DeviceBuilder now wraps the widget under test with default MediaQuery behavior if not already wrapped. Thanks @lunaticcoding +- The signature of testGoldens() was made more flexible to allow for non String descriptions to better match the underlying support of testWidgets. Thanks @kuhnroyal +- testGoldens() no longer applies a default value for skipping tests, which allows for testGoldens tests to be skipped if their parent group has been marked as skipped. +- **BREAKING** The way that testGoldens() marks tests as "Goldens" is now achieved with Dart test tags, rather than by creating a test group with a nested test named Golden. This makes for a more intuitive experience in your IDE. Thanks @kuhnroyal + +Note, this potentially can be a breaking change. If you previously ran tests by as such: + +```sh +flutter test --update-goldens --name=Golden +``` + +you should now run + +```sh +flutter test --update-goldens --tags=golden +``` + ## 0.9.0 This release adds null safety support for Flutter 2.0 / Dart 2.12. diff --git a/packages/golden_toolkit/example/pubspec.lock b/packages/golden_toolkit/example/pubspec.lock index b051ffb..73552fa 100644 --- a/packages/golden_toolkit/example/pubspec.lock +++ b/packages/golden_toolkit/example/pubspec.lock @@ -66,7 +66,7 @@ packages: path: ".." relative: true source: path - version: "0.9.0" + version: "0.10.0" matcher: dependency: transitive description: diff --git a/packages/golden_toolkit/pubspec.lock b/packages/golden_toolkit/pubspec.lock index 8ac9528..ac29d30 100644 --- a/packages/golden_toolkit/pubspec.lock +++ b/packages/golden_toolkit/pubspec.lock @@ -87,7 +87,7 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.10.0-nullsafety.3" + version: "1.11.1" sample_dependency: dependency: "direct dev" description: @@ -136,7 +136,7 @@ packages: source: hosted version: "1.2.0" test_api: - dependency: transitive + dependency: "direct dev" description: name: test_api url: "https://pub.dartlang.org" diff --git a/packages/golden_toolkit/pubspec.yaml b/packages/golden_toolkit/pubspec.yaml index 41a5218..411758c 100644 --- a/packages/golden_toolkit/pubspec.yaml +++ b/packages/golden_toolkit/pubspec.yaml @@ -1,12 +1,12 @@ name: golden_toolkit description: Common patterns for screenshot-based widget testing using Goldens. -version: 0.9.0 +version: 0.10.0 homepage: https://github.com/eBay/flutter_glove_box/ repository: https://github.com/eBay/flutter_glove_box/tree/master/packages/golden_toolkit issue_tracker: https://github.com/eBay/flutter_glove_box/issues environment: - sdk: ">=2.12.0-0 <3.0.0" + sdk: ">=2.12.0 <3.0.0" dependencies: flutter: @@ -16,9 +16,10 @@ dependencies: meta: ^1.1.8 dev_dependencies: - pedantic: ^1.10.0-nullsafety + pedantic: ^1.11.1 sample_dependency: path: test/sample_dependency + test_api: ^0.3.0 flutter: uses-material-design: true