https://kotlinlang.org logo
Title
s

Sangram Bankar

09/24/2021, 5:02 PM
Hello All, @sam has anyone came across the issue after upgrade of gradle version to 7.2 to add support for android jetpack compose. The test cases do pass but the build fails with an exception
Received a completed event for test with unknown id '8.4'. Registered test ids: '[8.1, :app:testDebugUnitTest, 8.2]'
Here are my gradle settings
------------------------------------------------------------
Gradle 7.2
------------------------------------------------------------

Build time:   2021-08-17 09:59:03 UTC
Revision:     a773786b58bb28710e3dc96c4d1a7063628952ad

Kotlin:       1.5.21
Groovy:       3.0.8
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          11.0.8 (JetBrains s.r.o 11.0.8+10-b944.6916264)
OS:           Mac OS X 10.16 x86_64
Guys any help would be appreciated or i have to rewrite all my existing unit tests in the project using junit5 or junit4. I have also added a detailed explanation https://github.com/kotest/kotest/issues/2331#issuecomment-923422181
s

sam

09/24/2021, 5:13 PM
This only happens for 7.2 ?
and works for gradle 7.1.1 ?
s

Sangram Bankar

09/24/2021, 5:14 PM
any 7+ version of gradle it's happening
s

sam

09/24/2021, 5:14 PM
what version of kotest ?
s

Sangram Bankar

09/24/2021, 5:15 PM
io.kotlintest:kotlintest-runner-junit5:3.4.2
s

sam

09/24/2021, 5:30 PM
ok that's very old
can you upgrade to 4.6.3 ?
s

Sangram Bankar

09/24/2021, 5:32 PM
How can i get 4.6.3?
s

Sangram Bankar

09/24/2021, 5:38 PM
i might be wrong, but according to the guide it says to use
kotest-runner-junit5
dependencies {
   testImplementation 'io.kotest:kotest-runner-junit5:version'
}
I'm using kotest for android project. Do i need to add a different module for android? If yes, which one?
s

sam

09/24/2021, 5:46 PM
that's correct
kotlintest 3 was renamed to kotest in version 3
about 2 years ago
s

Sangram Bankar

09/24/2021, 5:47 PM
Yes i got it now. it's working now Thanks for clarifying it. Really appreciate it
s

sam

09/24/2021, 5:48 PM
great