Open reisfernanda opened 11 months ago
Still impacted by this issue in: Android Studio Jellyfish | 2023.3.1 Patch 2 Build #AI-233.14808.21.2331.11926650, built on June 4, 2024
I did some research about sharing code between test and androidTest folder and got the same solution as yours. Thanks for posting this : )
@manuelvicnt Please check the solution to this issue. Thanks.
TestStorageModule
fromandroidTest
shows an unresolved reference error forFakeStorage
on the solution branch, even though the instrumented tests run successfully.FakeStorage
is located at thesharedTest
package, and this package is shared with tests throughsourceSets
, but it looks like sharing code this way is not supported anymore, according to this comment on Google Issue Tracker.A suggestion found on the same comment on Google Issue Tracker is to create a new module with the code that needs to be shared and add it as a dependency for
testImplementation
andandroidTestImplementation
.Android Studio version: