does anyone have some good links/tutorials/books o...
# getting-started
d
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
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
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
the junit5 manual is pretty good. also not sure what you mean by "for IntelliJ" -- IntelliJ works great with JUnit 4 and 5.
d
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
You could take a look at this talk from KotlinConf 2018:

https://www.youtube.com/watch?v=RX_g65J14H0

💯 1