Hello ! Is there a way to share test code between ...
# multiplatform
l
Hello ! Is there a way to share test code between Android and commonTest packages ? For example I want an utility function available for those 2 packages
j
if a function is in commonTest it is available in androidTest
l
Indeed, thanks I didn’t know that ! But I wanted to share between commonTest and androidApp/androidTest, is it possible ?
j
Adding it to commonMain, or creating a custom source set which is used in those targets. Check how jvmAndAndroidMain is used here: https://github.com/JetBrains/compose-jb/tree/master/examples/issues/common/src
this is the summary:
l
Thanks Javier I’ll look at this