Yeah, sorry about that Cedric :) - just wanted something simple working inside IDEA & Ant for writing some tests.
We should have a TestNG flavour of the kotlin-test library too; either that or maybe TestNG could include one (then its only 1 jar to add to folks build)? The kotlin-test library its pretty simple so far, just providing a few simple helpers for using assertions & blocks. e.g.
To be honest these most of these methods could all be testing framework agnostic & just throw the JDK’s java.lang.AssertionError’s. The only real reason its using JUnit at all right now was just to make use of those assertEquals methods to generate nice text (& nice IDEA visualisation) of when values are not the same. It’d be pretty easy to refactor the JUnit bit out and have a vanilla JDK, JUnit and TestNG implementation of the ‘assert equals’ stuff. Heck the same library could even look on the classpath to see which kind of Assert classes are available (JUnit or TestNG) and fail down to just using JDK assertions? (Though thats soundling like togging, the common-logging of testing?
Or do you fancy writing a testng-kotlin library, so all the TestNG stuff can be exposed nicely in a kotlin API? It’d certainly be nice if the APIs had similar shapes; then just a different import statements - so users could more easily switch to use whichever?