Member-only story
I.Why test pyramid
Companies are investing a lot of money into automated testing, but they are
- not seeing improved quality
- not seeing improved productivity
- not seeing improved user sentiment
One of the main reasons for this is the over reliance on browser based end to end tests.
If a tech team has a visible build radiator than it might look like this:
Long running tests suites; 30 mins-4 hours, sometimes days
Flaky tests fails 1 in 10 or even 1 in 3 runs
Too much time by QA and devs creating and maintaining regression tests; rather than finding and fixing problems
Environments broken or not reflecting production; therefore negating the usefulness of the regression tests
II.What is a test pyramid
In 2012 Martin Fowler wrote an article about the test pyramid, this was a concept developed by Mike Coen.
The test pyramid is a tool to fix the problem of over-reliance on long-running UI tests.
The pyramid says that tests on the lower levels are cheaper to write and maintain, and quicker to run. Tests on the upper levels are more expensive…