auto_golden_storybook 0.1.2 copy "auto_golden_storybook: ^0.1.2" to clipboard
auto_golden_storybook: ^0.1.2 copied to clipboard

Auto generates a web storybook from your golden tests in a subdirectory of your project.

Auto Generate Storybook #

Description #

A command-line tool to auto generate a storybook of your golden images. It automatically sets up a storybook subdirectory within your project, and populates it with 'story' objects for each golden image it finds in the test directory.

Usage #

dart run auto_golden_storybook:create

Configuration #

You can put configuration in your pubspec.yaml or use them on the command line. For example:

auto_golden_storybook:
  name: "project_storybook"

Or:

dart run auto_golden_storybook:create --name=project_storybook

By default the created web project will be called: "storybook". It will assume your test directory is called "test" and will generate stories for all images found in all subdirectories of the test directory.

Roadmap #

Automatically choose frame based on golden image size. Create Example More Configuration Options

Contributing #

Please suggest features or bugs on the issue tracker in Github.

License #

MIT License - see the LICENSE.md file for details

1
likes
0
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

Auto generates a web storybook from your golden tests in a subdirectory of your project.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, args, cli_util, code_builder, dart_style, flutter, logging, path, recase, source_gen, storybook_flutter, yaml

More

Packages that depend on auto_golden_storybook