Bitrise Build Issue Report template
Description of the issue
We have written our unit tests using the Mockk Framework:
testImplementation "io.mockk:mockk:1.9.1"
This is the testImplementation section of our gradle file as it stands today:
testImplementation âandroidx.test.espresso:espresso-core:3.3.0â
testImplementation âandroidx.test.ext:junit:1.1.2â
testImplementation âandroidx.test:core-ktx:1.3.0â
testImplementation âandroidx.test.espresso:espresso-core:3.3.0â
testImplementation âandroidx.test.ext:junit:1.1.2â
testImplementation âandroidx.test:runner:1.3.0â
testImplementation(âcom.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0â)
testImplementation âcom.squareup.okhttp3:mockwebserver:4.2.1â
testImplementation âcom.willowtreeapps.assertk:assertk-jvm:0.20â
testImplementation âio.kotlintest:kotlintest-runner-junit5:3.4.2â
testImplementation âio.mockk:mockk:1.9.1â
testImplementation âorg.assertj:assertj-core:3.13.2â
testImplementation âorg.hamcrest:hamcrest-library:2.2â
testImplementation group: âorg.jetbrains.kotlinxâ, name: âkotlinx-serialization-runtime-commonâ, version: â0.4.1â
testImplementation(âorg.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0â)
testImplementation(âorg.jetbrains.kotlin:kotlin-reflect:$coroutines_versionâ)
testImplementation âorg.mockito:mockito-core:3.1.0â
testImplementation âorg.robolectric:robolectric:4.4â
testImplementation âorg.slf4j:slf4j-simple:1.7.28â
For the sake of troubleshooting on Bitrise, I have removed all except for a single unit test. The unit test is failing on Bitrise. The symptoms are similar to this thread. I followed the suggestions provided in that thread to no prevail.
This is the error that I received:
* What went wrong:
Execution failed for task ':tradesy:testDevDebugUnitTest'.
> Received a completed event for test with unknown id '7.4'. Registered test ids: '[7.2, 7.1, :tradesy:testDevDebugUnitTest]'
If you have access, a link to the most recent log is located here.
Environment:
Where did the issue happen?
If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)
The failure occurred on Bitrise, Android + Docker on Ubuntu 16.04
Which build Step causes the issue and which version of the step?
android-unit-test
Reproducibility
- Does a âRebuildâ help? (You can trigger a rebuild from the Buildâs page, by clicking the âRebuildâ button in the top right corner of a finished build) : NO
-
Does a rebuild without caches help? (You can remove the
Cache:Pull
andCache:Push
steps temporarily to not to use the cache, or you can delete all the caches on theSettings
tab of the app. : NO - Does the issue happen sporadically, or every time? : Every time
- Does upgrading the build Step to the latest version help? : NO
- When did the issue start? : I created this app today, and pointed to a particular branch, which contains the latest source code changes exclusively for Bitrise.
Local reproduction
Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (âTesting with a full clean git cloneâ) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.
Local reproduction: Linux / Android (docker based) stack builds
Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp
directory and running the build from there with the Bitrise CLI ( Bitrise CLI )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: Redirecting⌠.