Skip to content

Commit a3e3b02

Browse files
committed
Add test run CLIs
1 parent efa5e12 commit a3e3b02

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

tests/test_stream_lifecycle.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,27 @@
1414
4. Multi-threaded safety: concurrent threads don't cause I/O-on-closed-file
1515
5. Sequential invocations: multiple ``invoke()`` calls don't corrupt state
1616
6. Stress tests (marked ``stress``): high-iteration reproducers for races
17+
18+
How to run locally
19+
------------------
20+
21+
Standard tests (fast, ~0.8s) with stress tests excluded by default:
22+
23+
.. code-block:: shell-session
24+
25+
$ pytest tests/test_stream_lifecycle.py -v
26+
27+
Stress tests only (30k iterations, ~52min):
28+
29+
.. code-block:: shell-session
30+
31+
$ pytest tests/test_stream_lifecycle.py -m stress -x --override-ini="addopts="
32+
33+
Everything:
34+
35+
.. code-block:: shell-session
36+
37+
$ pytest tests/test_stream_lifecycle.py --override-ini="addopts=" -x
1738
"""
1839

1940
from __future__ import annotations

0 commit comments

Comments
 (0)