Identity Dodgems
Definition:
where each test case shares some sort of global resource – perhaps a database, or a singleton data store, so needs to choose identifiers carefully in order to avoid collisions with other tests. Better in this case to use a central ID generator, to avoid accidental collisions, or each test having to be aware of all other tests’ choice of IDs.
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring