🧪Automated Testing
Also known as Test Automation, Automated Tests, Automated Software Testing
Tests written as code. A computer runs them on every change.
Think of it like
Think of it like a robot that checks each door in a house at night. It never gets tired and never skips one.
Example
Lucy's shop has 400 automated tests. They run on every push and finish in two minutes.
Why it matters
People forget checks. A computer runs every check, every time, and catches old bugs coming back.
Definition
Example code
console
$ npm test
Test Files 12 passed (12)
Tests 400 passed (400)Common mistake
Key takeaways
- 1Tests as code. A computer runs them, not a person.
- 2Every change. Run them on each push.
- 3Same every time. No step is ever skipped.