widgetbook_golden_test 0.1.0
widgetbook_golden_test: ^0.1.0 copied to clipboard
Utility for running golden tests on Widgetbook use cases.
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.