Option C oc_diagnostics
Loading...
Searching...
No Matches
test_shim Namespace Reference

Functions

 test_oc_diagnostics_suite ()

Variables

 _REPO_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
 _RUN_TESTS = os.path.join(_REPO_ROOT, "tests", "run_tests.py")

Detailed Description

pytest Compatibility Shim — oc_diagnostics
==========================================

Purpose
-------
Allow CI systems and contributors that use ``pytest`` as their standard
test-runner entry point to invoke the full ``oc_diagnostics`` test suite
without knowledge of the custom ``tests/run_tests.py`` runner (OI-20 / FS-11).

How it works
------------
A single pytest test function runs ``tests/run_tests.py`` as a subprocess and
asserts exit code 0.  The custom Option C runner is unchanged; this file is a
thin adapter only.

Usage
-----
    pytest tests/test_shim.py        # run via pytest
    python tests/run_tests.py        # run directly (preferred for development)

Function Documentation

◆ test_oc_diagnostics_suite()

test_shim.test_oc_diagnostics_suite ( )
Run the full oc_diagnostics suite via the custom tests/run_tests.py runner.

Passes when run_tests.py exits 0 (all non-skipped tests pass).
Fails with the captured output when run_tests.py exits non-zero.

Definition at line 37 of file test_shim.py.

Variable Documentation

◆ _REPO_ROOT

test_shim._REPO_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))
protected

Definition at line 33 of file test_shim.py.

◆ _RUN_TESTS

test_shim._RUN_TESTS = os.path.join(_REPO_ROOT, "tests", "run_tests.py")
protected

Definition at line 34 of file test_shim.py.