Kotlin can use JUnit4 as it's test framework quite straighforwardly. Indeed this is the set up for the Kotlin tests. Moreover I can get this working for my codes. However the JUnit4 support for data-driven testing is not as good as that of TestNG. Kotlin should be able to use TestNG, but I cannot get the TestNG system to recognize the existence of the tests.
That's interesting and looks like a bug. Can you please send us a small sample where you can reproduce this behaviour: without brackets it doesn't work, but same code with brackets does work.
I believe it has something to do with package with the name “Test”…
Hummm… this hasn't dealt with the problem. My initial enthusiasm was squashed when I relaized I was still using JUnit4. Now I am definitely using TestNG, all the code compiles but no tests are found.
Thanks for having proof that it all worked as it should, it gave me confidence that it was all my fault. Which was the balance of probability anyway. Having 3 → 2 it does now all work. Now I just have to find out how to get data providers working in Kotlin.