Testing patterns
Junior Developer Workshop
Kevin Guillaumond
April 7th, 2017
Reference
2
Why do we test?
3
When we find bugs
4
When | Who finds it | Who knows | Time to find the bug |
Before check-in | You | 1 | ~ minutes |
During code review | Teammate (dev) | Team devs | ~ hours |
Manual component testing | Teammate (QA) | Whole team | ~ days |
Manual integration testing | Service Level QA | Team + SL | ~ weeks |
In production | Client | Everybody | ~ weeks / months |
Why do we test?
5
What to test?
6
Goals of test automation
The addition of tests should:
The tests should:
7
Goals of test automation
8
Tools
The xUnit family is a set of testing frameworks for different languages
Class <-> Test class
Method <-> Several test methods
9
Code example: simplified French roulette
Bet on a number from 0 to 36
If your number comes up, payout is 35:1
Example: You bet $1 on 7
10
Links
11
More on testing
12
Questions / discussions
13