Quidest?

One behaviour, one test

ยท Lorenzo Drumond

Programming tests should be simple.

When what we want to test has multiple behaviours depending on the input, we should follow the following principle:

One behaviour, one test.

Multiple test cases for a single behavior in order to test a single behaviour. To test another behaviour, create a separate test.

References

#table #for_the_love_of_go #programming #golang