Rules of Thumb

images/pyramid/thumb.png

The pyramid takes its shape from experience, which has taught us that it is better to do the bulk of our automated testing down near the bottom, where the tests are fast and cheap, than at the top where they are slow and expensive.

Not all projects have or need end-to-end UI-style tests. Some get by with just unit and integration.

That’s why whenever we go and add new tests to the system, we always start at the bottom first, and work our way up from there.

images/preface/thumb.pngWhen adding a new test, always see if you can cover it with a unit test first. ...

Get The Way of the Web Tester now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.