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"""
6Purpose
7-------
8Provide a single-command entry point to run the full OCT test suite.
9
10Responsibilities
11----------------
12- Invoke pytest via subprocess with short traceback and quiet output.
13- Propagate the pytest exit code to the calling process.
14
15Diagnostics
16-----------
17Domain: OCT-TESTS
18Levels:
19 L2 — test-run lifecycle
20 L3 — (not applicable — no internal logic)
21 L4 — (not applicable — no internal logic)
22
23Contracts
24---------
25- Always delegates to pytest; never runs tests directly.
26- Exit code mirrors pytest exit code.
27"""
28
29import subprocess
30import sys
31
32# sys.exit(subprocess.call([sys.executable, '-m', 'pytest', '--tb=short', '-q', '-n', 'auto', '--dist=worksteal']))
33sys.exit(subprocess.call([sys.executable, '-m', 'pytest', '--tb=short', '-n', 'auto', '--dist=worksteal']))