widgetbook_golden_test 0.2.1
widgetbook_golden_test: ^0.2.1 copied to clipboard
Utility for running golden tests on Widgetbook use cases.
0.2.1 - 2025-09-15 #
- No actual changes in the library. Just a small fix to properly show example.md in the pub.dev Example tab.
0.2.0 - 2025-09-15 #
Added #
- Constant values for
'[skip-golden]','error-network-image','loading-network-image'so they are easier to access and use. - Custom
networkImageResolverin WidgetbookGoldenTestsProperties that allows to show custom images for mocked network images depending on the URL. copyWithmethod in WidgetbookGoldenTestsProperties;
Fixed #
- Network SVG images not being properly handled during the image mocking.
0.1.0 - 2025-09-03 #
Added #
- New
WidgetbookGoldenTestBuilderwhich provides additional functionality to the golden tests generated.- This builder has an option to provide play functions through the
goldenActionsproperty. Additional snapshots will be generated after the execution of each play function provided. - In the future, this builder may include other new features.
- This builder has an option to provide play functions through the
- New property in
WidgetbookGoldenTestsPropertiescalledaddonswhich allows the developer to apply Widgetbook Addons to the generated snapshots. (thanks @Gustl22) - New property in
WidgetbookGoldenTestsPropertiescalledonTestErrorwhich allows the developer to set a custom error handler that will be executed when there is an exception, allowing to ignore these errors or add additional logging.
Fixed #
- Caching images should no longer run for ever when they can't be cached. It will time out after 10 seconds.
0.0.3 #
0.0.2 #
- Bump minimal widgetbook version required.
0.0.1 #
- Initial release
- Support running all test cases in the auto generated widgetbook file as golden tests.
- Basic handling of Image.Network.
- Basic configuration of app theming, skip tag and custom image urls for different network states.