Fixed
Status Update
Comments
ga...@google.com <ga...@google.com> #2
Yuki, is this something you can take a look at?
hu...@google.com <hu...@google.com> #3
Hi Ivan,
Sure. Is this a com.android.test projects which only has androidTest in the project?
ga...@google.com <ga...@google.com> #4
Not necessarily, this can be a com.android.application
project which only has androidTest/kotlin
test sources. The reason why this fails is
hu...@google.com <hu...@google.com>
ga...@google.com <ga...@google.com> #5
This issue is now fixed in master.
ga...@google.com <ga...@google.com> #6
This will be also released with AGP 4.2.0-beta02.
Description
If Android projects with Kotlin have tests only under
androidTest/kotlin
, AGP will not run any integration tests. The reason is that AGP examines only java sources directories and if it determines those are empty, it just skips the task.AGP should check compiler-produced bytecode, and if there is none produced by javac nor other API-registered producers, we should skip.