Joseph Roffey
03/01/2021, 3:37 PM./gradlew test
, I see a test report that is generated into build/reports/tests/testDebugUnitTest/index.html
However, when I look at this, it does not make the difference between the results of the Android tests and the iOS Tests clear to me.
Furthermore, when I add a line assertTrue(false)
into iosTest > KoinTest > checkAllModules
it does not register any failures, whereas when I add the same line into the androidTest
equivalent the test does fail.
Should I be running the iOS tests differently / does anyone know whether I have misunderstood something?
I was under the impression that when I run the gradle tests it should test both the iOS and the Android KoinTest methods.
Sorry if I’m missing something obvious.russhwolf
03/01/2021, 3:43 PM./gradlew check
instead of ./gradlew test
.testDebugUnitTest
is just what ran on Android, but the check
task should also run them on iOSJoseph Roffey
03/01/2021, 3:46 PM./gradlew test
seems to run the tests for Android and ./gradlew check
seems to only run the tests for iOSrusshwolf
03/01/2021, 3:48 PMcleanAllTests
to get them to rerun but it doesn't always work for AndroidJoseph Roffey
03/01/2021, 3:48 PMrusshwolf
03/01/2021, 3:48 PMcleanAllTests
doesn't work you might need to explicitly cleanTestDebugUnitTest
Joseph Roffey
03/01/2021, 4:13 PM./gradlew check
I get two reports outallTests
and the other one seemed to have quite a generic name as well testDebugUnitTest
I was confusedrusshwolf
03/01/2021, 4:15 PMallTests
is everything in theory. But Android stuff is weird and doesn't always fit together