The Clarity of Context

When you first start out, there are going to be some natural ways of grouping tests that just make sense for you and your project.

images/org/pyramid.png

Pages, for example, are a nice way to group UI tests. Services and endpoints are natural points of integration. And 1:1 mappings between classes and tests are already a common convention with unit tests.

There are times, however, when you may get a test with lots of permutations and combinations, and you just need some alternative ways of organizing them.

Take this login page for example. Here are some good tests that test Dave’s LoginPage.

The tests are good. Each one individually is easy to ...

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.