golden_toolkit 0.2.3 golden_toolkit: ^0.2.3 copied to clipboard
Common patterns for screenshot-based widget testing using Goldens.
Breaking: Removed Future return type from
deviceSetup to multiscreenGolden to allow pumping customization when device configuration (ex: screen size) changes
Dropping pre-release tag. Improved documentation.
Resolved an issue when using
loadAppFonts() to unit test a non-application package which includes one or more custom fonts.
Improved the mechanism for loading font assets. Consumers no longer need to supply a directory to read the .ttf files from.
They can now simply call:
await loadAppFonts() and the package will automatically load any font assets from their pubspec.yaml or
from any packages they depend on.
Initial release. Includes utility methods for easily pumping complex widgets, loading real fonts, and for writing more advanced Golden-based tests.
GoldenBuilderfor widget integration tests that visually indicate different states of a widgets in a single Golden test.
multiScreenGoldenfor pumping a widget and performing multiple Golden assertions with different device characteristics (e.g. screen size, accessibility options, etc)
We expect to make breaking changes over the next few releases as we stabilize the API.