Skip to content

Commit

Permalink
Merge pull request #117 from eBay/new-release
Browse files Browse the repository at this point in the history
update changelog and version
  • Loading branch information
coreysprague authored Aug 11, 2021
2 parents 3b82f4e + 57ca617 commit abbf4f0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
21 changes: 21 additions & 0 deletions packages/golden_toolkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/golden_toolkit/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.9.0"
version: "0.10.0"
matcher:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions packages/golden_toolkit/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down
7 changes: 4 additions & 3 deletions packages/golden_toolkit/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit abbf4f0

Please sign in to comment.