I'm just trying out Kotlin 1.9.20 with the new default hierarchy template. there is now code completion for the source sets for the default hierarchy (https://kotlinlang.org/docs/whatsnew-eap.html#enjoy-improved-tooling-support) But there isn't for android test source sets (androidUnitTest, androidInstrumentedTest), just wondering why this was missed? The documentation for the template says that source sets are created for *Test just like *Main.
n
Nico Richard
10/31/2023, 5:30 PM
I'm coming up against the same issue myself.
Nico Richard
10/31/2023, 5:38 PM
For me I think what I needed to do was to continue using the
getting
syntax for this one
Copy code
val androidInstrumentedTest by getting { /*** dependencies, etc ... ***/ }
and for me I also needed to move my source directory
mv src/androidTest src/androidInstrumentedTest
j
Jon Bailey
10/31/2023, 5:45 PM
Yeah I've just kept using the getting syntax for now, would be nice if it was included though as the docs say it is.
Jon Bailey
10/31/2023, 5:45 PM
btw if you've moving to the new Android source set layout from androidTest then I think you want androidUnitTest instead of androidInstrumentedTest