Join Slack
Powered by
when should one use shouldspec vs behaviourspec vs...
# kotlintest
h
Hexa
10/19/2019, 10:56 AM
when should one use shouldspec vs behaviourspec vs stringspec when unit testing? there’s so many different types its quite confusing
w
wasyl
10/19/2019, 10:56 AM
Pick that which suits you best 🙂
wasyl
10/19/2019, 10:57 AM
As far as I know there’s no functional difference between them, they’re just aliases essentially
m
Mike
10/19/2019, 3:14 PM
Exactly. It's a matter of choosing the style that best fits either your team's preferences, or perhaps the test being written.
s
sam
10/21/2019, 6:30 PM
It’s nice to jump about between then based on the type of test as
@Mike
says or just make a rule that your team stick to one in particular.
Open in Slack
Previous
Next