Hi, We are in the team at the moment of choosing the method and language of testing the application. The fight continues between Kotlin + Junit + Mockk vs Groovy + Spock. For the convenience of writing, the fact that Junit is always tested with the latest version of Java on CI - Kotlin has my vote, but maybe there is something else that will speak for Kotlin + Junit?
What’s your opinion? We would like the actual unit tests to prevail over the heavy integration and contract tests, and here, too, it seems to me that the junit with kotlin will be faster and better -even in such cases as creating test data - you wont need to add additional builders, and you will be able to take advantage of the kotlin named arguments.
I know that the topic is not strictly related to the language, but I am looking for as many arguments as possible for Kotlin to win this duel
Personally I would go with Kotlin + Kotest + MockK. As for the Spock’s selling feature in detailed assert errors you can try this kotlin-power-assert plugin.