lawsynth/tests/test_end_to_end.py
caelum0x c8700e78f8 feat: §8.5 parameter refinement + §8.6 causal hypothesis + executable conformance suites
Discovery: opt-in joint parameter refinement (refine.rs, via lawsynth-opt
coordinate_minimize, guaranteed non-worsening trajectory MSE) and dependency/
causal hypothesis discovery (causal.rs, via lawsynth-causal Granger/independence/
time-order, framed as a hypothesis with its assumption set). CLI --refine/--causal.

Verification: wire tests/{conformance,end-to-end,cross-language} to execute against
the real compiled CLI — valid worlds round-trip, every bad-* asserted-rejected,
unbuilt native/TS legs honestly skipped. 26 pytest cases.

Rust workspace 342->352 tests; +26 system-verification cases. clippy/fmt clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-17 19:05:23 +03:00

30 lines
896 B
Python

"""End-to-end suite: exercise each case through the real CLI via ``_workflow``.
``discover`` cases must produce a serialized world, ``simulate`` cases must
produce the expected trajectory shape, ``native-optional`` cases probe the
optional Python native surface, and ``boundary`` cases assert the honest limit
of an unimplemented capability instead of forcing a pass.
"""
from __future__ import annotations
import sys
from pathlib import Path
import pytest
from conftest import discover_cases
_END_TO_END = Path(__file__).resolve().parent / "end-to-end"
if str(_END_TO_END) not in sys.path:
sys.path.insert(0, str(_END_TO_END))
import _workflow # noqa: E402
_CASES = discover_cases("end-to-end")
@pytest.mark.parametrize("case_dir", _CASES, ids=[case.name for case in _CASES])
def test_end_to_end_case(case_dir: Path, engine_binary: Path) -> None:
_workflow.run_case(case_dir)