-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change directory for generated mocks #545
Comments
Thanks for filing the request; this feature does not exist today. @natebosch it looks like we have the ability to hand-craft an AssetId for the BuildStep's output. Do you know if any other builder has added a configuration option like this? |
Here is a nice writeup the author of the feature wrote about using the new build extension syntax which allows directory moves: https://simonbinder.eu/posts/build_directory_moves/ |
any updates on this? |
No update |
+1 this should be a feature. |
to set expectations: we are not going to work in this anytime soon. Contributions are welcome. |
I'm working on this, please refer to my PR, for further comments on the issue. I find it useful, because it gets a bit confusing to have a lot of |
If I'm not missing anything, there's currently no way to change the default location of the generated files using
@generateMocks
.For example, in our project, we want all generated *.mock.dart files to be in a single package instead of spreading them among the test folders.
I believe many will also appreciate this feature, especially since it's common practice to store all mocks in a single folder in other frameworks.
Please correct me if this configuration option exists and I didn't find it.
The text was updated successfully, but these errors were encountered: