I've just upgraded our project Android Gradle Plug...
# gradle
k
I've just upgraded our project Android Gradle Plugin from
7.4.2
to
8.1.1
and android tests run significantly slower. I can't really pinpoint to Gradle issue, as we've raise Kotlin and Compose versions to latest one too (Compose 1.5 and Kotlin 1.9). Anyone experienced same problems?
w
Do you mean tests themselves or the startup?
k
From what I can tell, each module is being compiled and ran sequentially, even when they do not have tests. I can't say this was the case before:
Copy code
> Task :feature:deeplink:connectedDebugAndroidTest
Starting 3 tests on Pixel_6a_API_30(AVD) - 11

> Task :lightconditions:connectedDebugAndroidTest
Starting 0 tests on Pixel_6a_API_30(AVD) - 11

> Task :shake:connectedDebugAndroidTest
Starting 0 tests on Pixel_6a_API_30(AVD) - 11

> Task :utilities:connectedDebugAndroidTest
Starting 23 tests on Pixel_6a_API_30(AVD) - 11

> Task :data:preferences:connectedDebugAndroidTest
Starting 0 tests on Pixel_6a_API_30(AVD) - 11

> Task :data:network:connectedDebugAndroidTest
Starting 4 tests on Pixel_6a_API_30(AVD) - 11
...
Tests. App build time and everything else is same or faster with other dependencies being risen.
w
I filed https://issuetracker.google.com/issues/266279040 a while ago, overall one change from 7.x to 8.x was that UTP is now enabled by default I think
k
Might not be related to specific flag as my Android tests still run slow.
Worth noting is that running androidTests over Android Studio runs tests almost instant.