Skip to content

Commit

Permalink
Updated intro to follow CTF "different-types-of-testing" (#6133)
Browse files Browse the repository at this point in the history
* Updated intro to follow CTF

* Update rule.md
  • Loading branch information
tiagov8 authored Jul 27, 2023
1 parent 7d70234 commit 12805a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rules/different-types-of-testing/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ related:
created: 2022-11-04T01:39:46.642Z
guid: 912111cb-ac1a-4414-8cb2-89cc310eb41f
---
There are many different types of testing, each designed to help mitigate different types of risk.

A good test strategy employs a combination of different types of testing, performed using an appropriate mix of human testing and automation.
There are a lot of different ways to test software. Developers will often write unit or integration tests for their code, but can sometimes fall into the trap of trying to test all things the same way (aka the "golden hammer").

How much does it cost to fix a bug? It depends when it is discovered. If the dev notices it 1 hour after writing it, then it is cheap to fix. If the bug is discovered after it is live and lots of people are using it, then it is much more expensive to fix. If it is discovered after the developer has left the company, then it is super expensive to fix.

A good test strategy employs a combination of different types of testing, performed using an appropriate mix of human testing and automation. Each type of testing is designed to help mitigate different types of risk.

![Figure: Testing Pyramid - You should have more unit tests than manual tests](testing-pyramid.png)

Expand Down

0 comments on commit 12805a3

Please sign in to comment.