louiscad
09/09/2019, 9:06 AMKris Wong
09/09/2019, 9:14 AMlouiscad
09/09/2019, 9:22 AMactual symbols that reference Android APIs.Marko Mitic
09/09/2019, 9:23 AMKris Wong
09/09/2019, 9:29 AMMarko Mitic
09/09/2019, 9:31 AMKris Wong
09/09/2019, 9:32 AMandroidTest target with a dependency on commonTest, and then adjust your android source sets so that the tests are picked up correctlylouiscad
09/09/2019, 9:34 AMmacosX64Test), with the uncompleted ones failing as expected. On Android, I tried to run connectedDebugAndroidTest, but it doesn't seem to run anything as no failure is reported for the TODO() tests, nor success for the others.Kris Wong
09/09/2019, 9:36 AMlouiscad
09/09/2019, 9:42 AMcommonTest into it?Kris Wong
09/09/2019, 9:45 AMKris Wong
09/09/2019, 9:45 AMtest, but same ideaKris Wong
09/09/2019, 9:47 AMandroidTest and setting a source dependency should.louiscad
09/09/2019, 9:50 AMsourceSets.getByName("androidTest") {
java.srcDir("src/commonTest/kotlin")
}
and now, the tests run!
Thank you for the hint!
Will probably need to add that for androidTest/kotlin too, as you showed, so it works when I write Android specific test code.louiscad
09/09/2019, 9:51 AMKris Wong
09/09/2019, 10:04 AMlouiscad
09/09/2019, 10:17 AMdany
09/09/2019, 11:06 AMlouiscad
09/10/2019, 9:48 AM