DEV Community

Discussion on: How Simple is too Simple to Test?

Collapse
 
kbariotis profile image
Kostas Bariotis • Edited

Even the best programmers make mistakes.

Yes, I am completely with you on this. Manual code reviews must not be skipped.

A well-known technique is also en.wikipedia.org/wiki/QuickCheck (you may find it under different names depending on the language).

The goal is to automatically generate random values to pass in a function and see how it reacts.

Collapse
 
bosepchuk profile image
Blaine Osepchuk

Yes. Quickcheck is an implementation of property-based testing. We do property-based testing mostly for reversible operations like encode-decode functionality when we want to make sure the data is preserved. But that's really a niche for us. The base of our testing pyramid is unit tests.