https://kotlinlang.org logo
#library-development
Title
# library-development
h

helpermethod

12/11/2017, 10:37 AM
Hi, first question. What unit testing libs are you using?
l

louiscad

12/11/2017, 11:14 AM
Hi @helpermethod I didn't work on libraries that really need unit testing for now because they are tied to the Android API, but I think there are good examples in several libraries by JetBrains (ktor, kotlinx.coroutines, kotlinx.serialization, etc) and other good Kotlin libraries that are unit tested on how to do it right, and you can see what they use.
h

helpermethod

12/11/2017, 12:52 PM
👍
t

todd.ginsberg

12/13/2017, 3:04 AM
I use Junit 4 or 5 depending on how old the project is, and AssertJ. Tried spek and enjoyed it, but all my java stuff is in J4/5 + assertj so it just is mentally easier for me to keep track of one set that I like.
2 Views