Option C Tools
Loading...
Searching...
No Matches
run_tests.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
# tests/run_tests.py
4
5
"""
6
Purpose
7
-------
8
Provide a single-command entry point to run the full OCT test suite.
9
10
Responsibilities
11
----------------
12
- Invoke pytest via subprocess with short traceback and quiet output.
13
- Propagate the pytest exit code to the calling process.
14
15
Diagnostics
16
-----------
17
Domain: OCT-TESTS
18
Levels:
19
L2 — test-run lifecycle
20
L3 — (not applicable — no internal logic)
21
L4 — (not applicable — no internal logic)
22
23
Contracts
24
---------
25
- Always delegates to pytest; never runs tests directly.
26
- Exit code mirrors pytest exit code.
27
"""
28
29
import
subprocess
30
import
sys
31
32
# sys.exit(subprocess.call([sys.executable, '-m', 'pytest', '--tb=short', '-q', '-n', 'auto', '--dist=worksteal']))
33
sys.exit(subprocess.call([sys.executable,
'-m'
,
'pytest'
,
'--tb=short'
,
'-n'
,
'auto'
,
'--dist=worksteal'
]))
tests
run_tests.py
Generated by
1.15.0