Kotlin test will do a good job of replacing Spock Framework. Groovy does provide some niceties that aren't in kotlin, and you'll have to use Mockk or Mockito to replace the mocking aspects of Spock.
Kotlin test is the runner, test definition and assertions. There are several styles, including very BDD like style.
d
Dias
07/22/2019, 3:52 PM
nice, yeah I am fine with using separate mocking library (don't think anything can replace me Mockk <3)
s
sam
07/22/2019, 3:52 PM
mockk is awesome, kotlintest doesn’t try to be a mocking framework
👌 1
sam
07/22/2019, 3:52 PM
But assertions / runner are closely related
m
Mike
07/22/2019, 5:01 PM
Agreed. All tests require a structure, a runner, and assertions. Mocking isn't always required, so it makes sense to separate it out. And given there are 2 great libraries available, I'm glad the Kotlintest team is not focusing on Mocking.
Groovy just makes mocking easy, so they decided to have it part of Spock.