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
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.
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
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.
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
08/10/2020, 2:31 PM
You could take a look at this talk from KotlinConf 2018: