test isolation

The property that each test sets up everything it needs and leaves nothing behind, so tests pass in any order.

In more detail

Isolated tests can run alone, in parallel or shuffled with the same result. Function-scoped fixtures, temporary paths, transactions that roll back and disposable containers are all ways to achieve it.

Related terms

Taught in

References