What does kotlin-test-junit provide compared to ko...
# getting-started
d
What does kotlin-test-junit provide compared to kotlin-test? What advantage would there be in using these against, say, just TestNG in the first place?
e
consider also asking in #kotlintest
d
Ah, thank you
👍 1
i
@elect Actually, kotlintest is a completely different library
@dreamreal
kotlin-test-junit
provides enhancements for
kotlin-test
when you use it to write JUnit tests. For example, assertions become throwing JUnit-specific assertion exceptions.
d
Ah, I see. I was looking at the getting-started docs and it recommended one or both, and didn't tell me why.
i
Should you use
kotlin-test
to write tests (namely assertions in tests)? If you're targeting JVM only, it's up to you, you can use either it or use assertions from your favorite test framework.
d
nod thank you. That makes sense.
e
ah ok, @ilya.gorbunov