Any recommendations for unit and integration testing (JUnit, TestNG, ...)?


#1

I'm about to start replacing some home grown test code with either JUnit and TestNG. I'd like to run things from within IntelliJ. Any recommendations on how these interact with Kotlin, or should they both work equally well?

thanks,
Rob


#2

They should all work fine. There's also Spek that might interest you

http://jetbrains.github.io/spek/


#3

Cool. Thanks.


#4

Indepently of Kotlin, I would strongly suggest TestNG instead of JUnit. The parametrization of test methods is much better in TestNG, and there some other nice things that are not so powerful or not so clear in JUnit (like the framework architecture itself).