You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
TestStorageModule from androidTest shows an unresolved reference error for FakeStorage on the solution branch, even though the instrumented tests run successfully. FakeStorage is located at the sharedTest package, and this package is shared with tests through sourceSets, 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 and androidTestImplementation.
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:
The text was updated successfully, but these errors were encountered: