GhostWalker562 / flutterbook

📓 Storyboard your components with Flutterbook. Develop, document, & test any kind of Flutter component.
MIT License
33 stars 16 forks source link

Integrate golden screenshots into flutterbook #21

Open prolificcoder opened 2 years ago

prolificcoder commented 2 years ago

At our company we are using golden toolkit from ebay: https://pub.dev/packages/golden_toolkit for unit testing widgets and also flutterbook for developing and act as a repository. Code for both these is pretty similar

Wouldn't it be wonderful. if we can have a way to integrate both of them?

May be have a custom plugin or a command line argument flutter run --dart-env=test-goldens to trigger golden screentests on all states of flutterbook.

Josiassejod1 commented 2 years ago

Hey so if I understand what you are saying, you would want all screens to automatically generate golden tests ?