if I only want to use kotest assertions in a jvm p...
# kotest
a
if I only want to use kotest assertions in a jvm project, which dependencies should I include?
a
Hi @akowal you will only need to add kotest-assertions-core-jvm your build tool will it self pull its all transitive dependencies.
a
hey! as I mentioned below, the problem is that
kotest-assertions-core-jvm
 has runtime dependency on 
kotest-assertions-jvm
, so I get compilation errors
e.g.
io.kotest.matchers.ShouldKt#shouldBe
is contained in
kotest-assertions-jvm
a
try this import io.kotest.matchers.collections.shouldContain
Copy code
"should contain" {
    listOf(1, 2, 3) shouldContain 1
}
a
yeah, it works because it's in
kotest-assertions-core-jvm
a
here's minimal example to reproduce the issue
a
Thanks i will look into it
a
👍
a
Thanks @akowal thats seems to be a bug. Weird part though is when
kotest-runner-junit5-jvm
is classpath that imports works. Could you please open a github issue for this.
a
sure!
a
Thanks
a
check
#1425
l
Add
io.kotest:kotest-assertions-jvm:version
as well
So
Copy code
api "io.kotest:kotest-assertions-core-jvm:4.0.5"
api "io.kotest:kotest-assertions-jvm:4.0.5"
(Or implementation)