DiamondLightSource / DiamondLightSource/dodal

Enable random-order for tests

Open
#1,199 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
13
Avg merge
3d 2h
Merged PRs (30d)
10

Description

Running tests in a repeatable order allows some tests to become reliant on state that is left over/hide tests that are leaving over state that would break other tests. To ensure that our tests are well behaved, they should be switched into random order, and any tests that are flaky isolated and discovered why

## Acceptance Criteria
* When pytest is run locally or in ci, the `--random-order` flag is enabled

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.