https://kotlinlang.org logo
Title
d

dreamreal

09/07/2017, 3:03 PM
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

elect

09/07/2017, 3:04 PM
consider also asking in #kotlintest
d

dreamreal

09/07/2017, 3:04 PM
Ah, thank you
👍 1
i

ilya.gorbunov

09/07/2017, 4:25 PM
@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

dreamreal

09/07/2017, 4:29 PM
Ah, I see. I was looking at the getting-started docs and it recommended one or both, and didn't tell me why.
i

ilya.gorbunov

09/07/2017, 4:30 PM
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

dreamreal

09/07/2017, 4:35 PM
nod thank you. That makes sense.
e

elect

09/07/2017, 5:11 PM
ah ok, @ilya.gorbunov