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
In order to avoid duplicating fake test data across test and androidTest, I have created a module sharedtestcode which depends on app. I then consume sharedtestcode as a test dependency of the app module via testImplementation and androidTestImplementation.
Hi @danika. Thanks for the report. This seems like a duplicate of #3030 that originates from an issue around which classes that are passed to our transformer. The currently used transforer API of AGP has been undergoing development and will be removed from AGP 8.0, so the original reported issue is left as obsolete. We are currently in the process of migrating to the new API in #7714 (specifically also applying the transformer on unittest and test components) and with this we should hopefully also address this
How frequently does the bug occur?
All the time
Description
In order to avoid duplicating fake test data across
test
andandroidTest
, I have created a modulesharedtestcode
which depends onapp
. I then consumesharedtestcode
as a test dependency of theapp
module viatestImplementation
andandroidTestImplementation
.This is the recommended way to share test data starting from Android Studio Chipmunk. (see: https://issuetracker.google.com/issues/232420188)
This seems to work fine when running unit tests, but when I attempt to run an android test, I get:
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
Demo project: https://github.com/danika/RealmSharedTest
Version
10.11.1
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Android (SDK 31)
Build environment
Android Studio version: Chipmunk 2021.2.1 Patch 2
Android Build Tools version: 7.2.2
Gradle version: 7.3.3
The text was updated successfully, but these errors were encountered: