TestStorageModule from androidTest shows an unresolved reference error for FakeStorage on the TestStorageModule class, 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..
This PR creates a new module called shared-test with the FakeStorage class and adds it as a dependency for unit and instrumented tests on the app module. With this change, the Fake Storage on the TestStorageModule class is referenced correctly.
This PR fixes the issue #78.
TestStorageModule
fromandroidTest
shows an unresolved reference error forFakeStorage
on theTestStorageModule
class, 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..This PR creates a new module called
shared-test
with theFakeStorage
class and adds it as a dependency for unit and instrumented tests on theapp
module. With this change, theFake Storage
on theTestStorageModule
class is referenced correctly.