Betterment / alchemist

A Flutter tool that makes golden testing easy.
MIT License
268 stars 36 forks source link

request: Generate goldens files with same structure as test files #108

Open xVemu opened 9 months ago

xVemu commented 9 months ago

Is there an existing feature request for this?

Command

Generate goldens files with same structure as test files

Description

I have a test file with path like test/widgets/helpers/simple_html_test.dart. I want to generate golden test image in test/goldens/widgets/helpers/simple_html_test.dart. Is it possible to achieve this without creating separate configuration for every directory or setting filename with path as goldenTest argument?

Reasoning

Many packages that use build_runner allows you to configure this, so I would like to stay consistent with generated files in my project and don't mix test files with images.