Join Slack
Powered by
Hey folks, we’re using Kotest and was wondering if...
# announcements
p
Pratik Tandel
11/20/2020, 8:19 PM
Hey folks, we’re using Kotest and was wondering if there’s a library or a way of writing fixtures that other folks seem to like and enjoy?
r
Rob Elliot
11/20/2020, 8:53 PM
I like the sheer simplicity of StringSpec
Rob Elliot
11/20/2020, 8:54 PM
There’s a
#CT0G9SD7Z
channel btw
👍 1
p
Pratik Tandel
11/20/2020, 8:54 PM
oh neat! We use describe spec but was wondering if there’s some cool way to define fixtures. we’re just using functions w/ default values
Pratik Tandel
11/20/2020, 8:55 PM
in scala, i’d often have a default template and invoke copy on it (for case classes or data classes in case of kotlin)
s
sam
11/21/2020, 2:19 PM
You can just use a normal val outside the tests and copy that inside the test. Same thing as a fixture
Open in Slack
Previous
Next