|
Option C Tools
|
Functions | |
| test_linter_runs_and_creates_log (Path temp_project_root) | |
| test_linter_fix_headers_mode (Path temp_project_root, oct_lint.LinterContext linter_ctx) | |
| test_linter_json_output (Path temp_project_root) | |
Purpose
-------
Perform end-to-end integration tests of the OCT linter.
Responsibilities
----------------
- Run the linter via its Python API.
- Validate log file creation.
- Validate summary output.
- Validate behavior in --fix-headers mode.
- Validate machine-readable JSON output (--json mode).
Diagnostics
-----------
Domain: LINTER-TESTS
Levels:
L2 — lifecycle
L3 — semantic details
L4 — deep tracing
Contracts
---------
- Must simulate a full Option C project.
- Must not depend on the developer's real environment.
- Must ensure deterministic behavior across runs.
| tests_linter.test_integration.test_linter_fix_headers_mode | ( | Path | temp_project_root, |
| oct_lint.LinterContext | linter_ctx ) |
Run the linter in --fix-headers mode and ensure the fix is applied.
Definition at line 50 of file test_integration.py.
| tests_linter.test_integration.test_linter_json_output | ( | Path | temp_project_root | ) |
Run the linter in --json mode and verify the output is valid JSON with the expected top-level structure.
Definition at line 65 of file test_integration.py.
| tests_linter.test_integration.test_linter_runs_and_creates_log | ( | Path | temp_project_root | ) |
Run the linter normally and ensure a log file is created.
Definition at line 40 of file test_integration.py.