Loading...
Searching...
No Matches
Go to the documentation of this file.
6The spec-10 §20 stand-in: the ``oct test`` compatibility subset as an
7OC_Chat-side wrapper (Plan 184).
11Provide ``python -m oc_chat.testing`` — a temporal bridge that behaves
12like ``oct test --package oc_chat`` for the section-20 subset until
13``oct test`` v1.0 ships (retirement criterion: spec-10 section 20.4).
14The live v0.x ``oct test`` surface is frozen (ADR-T-14); this package is
15the only §20 form available now and the first live producer of the
16``oct-test/v0.4`` report contract.
20- ``cli`` — the §20.1 argv contract (eight flags + --per-test-timeout
21 + accepted-ignored --output-tests-limit; everything else exits 4).
22- ``package_walk`` — ADR-T-12 single-package fallback discovery plus
23 the §10 undeclared-root scan.
24- ``static_scan`` — the §20.2 static AST guard (cwd_chdir,
25 env_mutation; advisory owned-writes pre-check).
26- ``env_inventory`` — the §20.2 tracked-prefix single source of truth.
27- ``report`` — schema stamp, pinned supported_features, error catalog,
29- ``runner`` — serial in-process execution with process-level restore
30 checks and report assembly.
42- The report shape is spec-10 §11/§20.3; features are deferred via
43 ``supported_features``, never fields.
44- No pytest passthrough exists on this surface (ADR-T-16 posture:
45 ``selection.pytest_args`` is always ``[]``).
49- oc_diagnostics (structured debug logging via _dbg)
50- oc_chat.testing.runner (RunResult and run_standin - re-exported as the package API)
52from __future__
import annotations
54from oc_diagnostics
import _dbg
58_dbg(
"OC_TESTING",
"module",
"loaded", 4)
60__all__ = [
"RunResult",
"run_standin"]