Assigned
Status Update
Comments
xa...@google.com <xa...@google.com> #2
Disregard - after adding
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
Description
I tried using the following code to explicitly enable device tests for the non-default test build type (modified fromhttps://github.com/android/gradle-recipes/blob/agp-8.7/disableTests/build-logic/plugins/src/main/kotlin/CustomPlugin.kt ) but this doesn't seem to work for enabling tests, only for disabling.
This should either work, or throw an error if it is not supported to enable in this way - if I query this later inside
onVariants
withget(DeviceTestBuilder.ANDROID_TEST_TYPE)
, I just seenull
even when I explicitly enable it.I also confirmed that when running this code it is not null, so I actually am explicitly setting the var enabled to true on a real object