-
Notifications
You must be signed in to change notification settings - Fork 0
Typology
GradedJestRisk edited this page Mar 4, 2020
·
6 revisions
Aka "Test pyramid"
Types
- Unit
- Integration
- Acceptance
- End to end (E2)
List:
- low-level, focusing on a small part of the software system
- usually written these days by the programmers themselves
- expected to be significantly faster than other kinds of tests
- OO design tends to treat a class
- procedural or FP might consider a single function
- a bunch of closely related classes
- it's a situational thing - the team decides what makes sense
List:
- mockist: solitary test (do NOT talk to real code when in test);
- classic: social test (do NOT talk to real code when in test).
Involve test double. If external services are involved, consider adding Contract tests to ensure the test double has the same behaviour as the external service.