Closed AlexTrotsenko closed 4 years ago
Just in case, when I run the build 2nd time - it completed successfully.
It's a bit weird since I have changed nothing.
$ ./gradlew build
> Configure project :shared
Kotlin Multiplatform Projects are an experimental feature.
> Task :app:lint
Ran lint on variant debug: 0 issues found
Ran lint on variant release: 0 issues found
> Task :shared:iosTest
2020-08-01 16:23:12.972 test.kexe[57333:3251256] Verbose: (KampKit) App Id Test
> Task :shared:lint
Ran lint on variant release: 0 issues found
Ran lint on variant debug: 0 issues found
BUILD SUCCESSFUL in 6s
150 actionable tasks: 8 executed, 142 up-to-date
This is all Android/JVM side stuff. testReleaseUnitTest
is an Android thing, as is org.robolectric:android-all:jar:4.1.2_r1-robolectric-r1
. I think best move at this point is to see if 1.4 improves the situation.
Closing for now, seems to have been an issue with android/kotlin plugins. Let us know if this comes up again or is repeatable.
@kpgalligan , @samhill303 thanks for you reply and support. Looks like it was Indeed just temporary issue (perhaps it was caused by my build environment). I was also able to build successfully the project on my another MacBook.
On the other note: would you mind to restrict execution time of JUnit tests? E.g. by using @Rule Timeout in the actual BaseTest
?
As you see, it took 47 minutes to finish the build with an error. It might be confusing for other if it happens again.
I am volunteering to submit the MR if you find this restriction reasonable.
@AlexTrotsenko That seems reasonable, just wouldn't want to make it too short and get flaky tests
I am trying to have 1st build of KaMPKit. I was able to successfully build and run it in Android Studio.
Now I am trying to run 1st optional step of iOS build. I have already downloaded and run XCode 11.5.
For unknown reasons the build takes too long and all tests are failing.
Just in case I am running the build on MacBook Pro 16" (2019), MacOS Catalina 10.15.4.
And then in the
index.html
for each test I see the same: