You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These tests run 30_000 iterations each and take a long time. Use `-x` to stop at the first failure.
36
+
37
+
### Randomized & Parallel Tests
38
+
39
+
Runs the full test suite in random order across multiple processes to detect test pollution and race conditions. This uses `pytest-randomly` and `pytest-xdist`.
40
+
41
+
```shell-session
42
+
$ tox -e random
43
+
```
44
+
45
+
You can reproduce a specific ordering by passing the seed printed at the start of the run:
A CI workflow (`.github/workflows/test-flask.yaml`) runs Flask's own test suite against Click's `main` branch. This catches regressions that would break Flask, Click's primary downstream consumer.
54
+
55
+
The workflow clones Flask, installs it, then overrides Click with the current branch. To replicate locally:
56
+
57
+
```shell-session
58
+
$ git clone https://github.com/pallets/flask
59
+
$ cd flask
60
+
$ uv venv --python 3.14
61
+
$ uv sync --all-extras
62
+
$ uv run --with "git+https://github.com/pallets/click.git@main" -- pytest
63
+
```
64
+
65
+
Replace `@main` with your branch or a local path (`-e /path/to/click`) to test local changes.
0 commit comments