-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
TestFixtures refactoring #1515
base: main
Are you sure you want to change the base?
TestFixtures refactoring #1515
Conversation
8f377a3
to
35adf5e
Compare
This PR has a lot of conflicts. Do you want to continue and resolve these, @SimonMarquis ? |
@keyboardsurfer yes, I'd love to see this integrated in the repository at some point (the initial PoC was on Nov 19, 2022 😅). |
Good to hear that you're interested in picking this back up again. @JoseAlcerreca can you chime in on the likelihood of this PR being integrated into main? |
Just to add my 2 pence, I am strongly in favour of anything that tidies up our test architecture and TestFixtures seems to do that. |
Support for Kotlin TestFixtures on Android modules was added in AGP 8.5.0!
A lot more cleanup could be done, especially on test classes that redefine over and over again topics, newsResources, etc.
This is a new take on this PR:
To close this issue from 2022:
The main changes are split by commits:
enableTestFixturesKotlinSupport
flag:core:data-test
,:sync:test
and:core:datastore-test
have been merged as testFixtures sourceSet of their respective module.:core:testing
content has been migrated when possible to already existing modules.:sync:work
has been move to it's parent:sync
module that was previously empty.android.experimental.enableTestFixturesKotlinSupport
to promote from experimental?