alchemist library

Puts gleon behind alchemist's golden tests without depending on alchemist: assign gleonAlchemistExpectation() to alchemist's goldenFileExpectationFn in test/flutter_test_config.dart (see doc/alchemist.md).

Functions

gleonAlchemistExpectation({GoldenTolerance? tolerance, List<Rect>? ignoreRegions, double? textTolerance, bool shouldHintObscuredText = true}) → AlchemistGoldenExpectation
An alchemist golden file expectation that compares with gleon's matchesGoldenFile; assign it to alchemist's goldenFileExpectationFn in test/flutter_test_config.dart (see the README's "Golden harnesses"). Call loadAppFonts() there first: alchemist loads the app's fonts again before each golden test, and text keeps the faces loaded first, which loadAppFonts aligns to lay text out alike on every OS.

Typedefs

AlchemistGoldenExpectation = AsyncCallback Function(Object actual, Object golden)
The type of alchemist's GoldenFileExpectation, spelled without alchemist: the assertion that ends every alchemist golden test, given what it captured (actual) and the path of its golden (golden).