Mobile Platform Specialized in eCommerce ● Mobile development accelerator ● Modular solution (catalog, search, i18n, message center, ...) ● Multiple backend integration ● Admin Console
Icons reference Custom library of icons made with https://www.fluttericon.com Generates: ● Dart class with static consts ● Font file None of those files are self-descriptive
3rd-party packages https://pub.dev/packages/golden_toolkit ● Made and maintained by eBay ● Widget wrapper to test different: ○ parameters ○ screen sizes ○ Text scale ● Font loading helpers https://tech.ebayinc.com/engineering/ebay-motors-screenshot-testing-with-flutter/
3rd-party packages https://pub.dev/packages/alchemist ● Directly inspired from the previous one ● Advanced integration with Flutter SDK ○ Theme injection ● Platform aware ○ CI-only test
Flutter SDK ● Golden testing are at the core of the SDK testing workflow ● ~1300 golden test cases ● Guarantee of: ○ Maturity ○ Reliability ○ Maintenance over time ● Custom web app for results and difference analysis: https://flutter-gold.skia.org
Edge case: code gen For each fixture file (xxxx.dart): 1. Read the golden xxxx.g.dart 2. Run the code generation on xxxx.dart 3. Compare the output w/ the golden file content 4. Eventually overwrite xxxx.g.dart (i.e. update golden)