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.
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 intest/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 asgoldenTest
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.