does anyone have some good links/tutorials/books on testing with kotlin? I don’t have a Java background and have been working on an intellij plugin based on other plugins. I have a lot of functionality working but now I have no idea how to go and write tests for coverage
n
nanodeath
08/10/2020, 2:30 AM
my preferred tools actually aren't very "Kotlin-y" -- JUnit5 for unit tests, AssertJ for better assertions, MockK for mocking, and...JaCoCo for coverage. you could start with those.
d
Dan O'Brien
08/10/2020, 2:43 AM
do you know of any standout tutorials/videos/books on them? Looks like I’ll need to stick with JUnit 3 also for intellij
n
nanodeath
08/10/2020, 5:23 AM
the junit5 manual is pretty good. also not sure what you mean by "for IntelliJ" -- IntelliJ works great with JUnit 4 and 5.
d
Dan O'Brien
08/10/2020, 12:31 PM
thanks Max! This is a plugin for intellij, based on what I was reading they’re still using JUnit3 so that seems like what should be used for plugins then
m
marstran
08/10/2020, 2:31 PM
You could take a look at this talk from KotlinConf 2018: