https://kotlinlang.org logo
Title
s

Shalom Halbert

12/13/2020, 7:01 PM
Hey folks, what are the differences between Kotest and Spek?
s

sam

12/13/2020, 10:10 PM
Will try to compare but as I don't use Spek I may be slightly off, so please correct me if anyone sees anything wrong. Kotest supports testing JVM and JS. Spek supports JVM and native. Kotest provides assertions, a test framework and property testing. Spek is a test framework only. Kotest supports coroutines natively. Both have an Intellij plugin that is broadly the same (I assume the Spek one allows you to run individual tests) Kotest allows more flexibility in the test layout. https://kotest.io/docs/framework/testing-styles.html Kotest is more active https://github.com/kotest/kotest/commits/master https://github.com/kotest/kotest/graphs/contributors https://github.com/spekframework/spek/commits/2.x https://github.com/spekframework/spek/graphs/contributors Both are widely used. Maybe Spek is more widely used due to having some past association with Jetbrains. You'd be happy with either.
s

Shalom Halbert

12/14/2020, 2:44 AM
Thank you Sam, this is super helpful 🙂
Possibly not interesting to you, but this question was asked in r/Kotlin: https://www.reddit.com/r/Kotlin/comments/kccm6b/kotest_vs_spek_how_do_they_compare/
s

sam

12/14/2020, 2:55 AM
Thanks, I added a couple of comments.