How to Test

By matklad

Keep an eye on tests standing in a way of refactors. Use the check idiom to make tests resilient to changes.

Work hard on making adding new tests trivial.

Duh, test features, not code! Test at the boundaries.

Read here