The Testing Pyramid

- 2 mins

When thinking about a testing strategy, there are three related testing aspects:

There are inherent trade-offs between these aspects. For example, speed and fidelity are a trade-off- the faster the test, generally, the less fidelity, and vice versa. One common way to divide automated tests is into these 3 categories:

These tests can be run either locally (test source set) or as instrumentation tests (androidTest source set).

The suggested proportion of these tests is often represented by a pyramid, with the vast majority of tests being unit tests

alt text

rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora opensource