-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Bug]: Move Fakes to a test module #875
Comments
So, basically we have to move these bunch of repositories to |
No, because we probably need to use them in other modules, and you can't depend on test sourceSets of other modules. FWIW, I think that until we have proper AGP support for testFixtures in Kotlin for Android modules, migrating fakes to a centralized module is a bad practice in terms of modularisation. It encourages devs to merge unrelated code together and/or to create "test" modules for every other module. To start this migration, one step forward would be to make this For reference: |
Why is this a bad thing? We could create a |
This might not have any meaningful impact on small-scale projects, but if you have tens (or hundreds) of modules, and each of them has an extra companion module, this creates unnecessary load on the build process, while |
Now that these fake implementations are no longer used in the production source code (only in tests), we can safely extract them out of this module. Hopefully, we'll later be able to use Kotlin testFixtures for that. References: - android#709 - android#875
Ping @JoseAlcerreca the fakes have been moved to the |
Now that these fake implementations are no longer used in the production source code (only in tests), we can safely extract them out of this module. Hopefully, we'll later be able to use Kotlin testFixtures for that. References: - android#709 - android#875
Now that these fake implementations are no longer used in the production source code (only in tests), we can safely extract them out of this module. Hopefully, we'll later be able to use Kotlin testFixtures for that. References: - android#709 - android#875
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/fake
has a bunch of fakesRelevant logcat output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: