Test pyramid sketch

This commit is contained in:
Marko Anastasov
2019-11-01 17:18:49 +01:00
parent cf6b33fd34
commit 410cf167d9
2 changed files with 1 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ While it's great to keep your entire pipeline fast, on many occasions you can ge
Unit tests run the fastest, because they are isolated and usually don't touch the database. They define the business logic, and are the most numerous, as is commonly depicted in the "test pyramid" diagram:
TODO: diagram test pyramid
![Test pyramid](figures/04-test-pyramid.png){ width=70% }
A failure in unit tests then is a signal of a fundamental problem, which makes running the remaining high-level and long-running tests irrelevant. For these reasons, projects with test suites that run for anything longer than a minute should prioritize unit tests in the CI pipeline.

BIN
figures/04-test-pyramid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB