when should one use shouldspec vs behaviourspec vs...
# kotlintest
h
when should one use shouldspec vs behaviourspec vs stringspec when unit testing? there’s so many different types its quite confusing
w
Pick that which suits you best 🙂
As far as I know there’s no functional difference between them, they’re just aliases essentially
m
Exactly. It's a matter of choosing the style that best fits either your team's preferences, or perhaps the test being written.
s
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.