Hello All, <@U12AGS8JG> has anyone came across the...
# kotest
s
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
Copy code
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
Copy code
------------------------------------------------------------
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
This only happens for 7.2 ?
and works for gradle 7.1.1 ?
s
any 7+ version of gradle it's happening
s
what version of kotest ?
s
io.kotlintest:kotlintest-runner-junit5:3.4.2
s
ok that's very old
can you upgrade to 4.6.3 ?
s
How can i get 4.6.3?
s
i might be wrong, but according to the guide it says to use
kotest-runner-junit5
Copy code
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
that's correct
kotlintest 3 was renamed to kotest in version 3
about 2 years ago
s
Yes i got it now. it's working now Thanks for clarifying it. Really appreciate it
s
great