Files
make-cad/test/conftest.py
T
NiJingzhe 56f433309b feat(errors): guidance contract fields + boolean-family failure diagnosis pilot
ErrorGuidance gains measurements / evidence / repair / inventory; every
measurement renders into the error text (text axiom), rendered evidence
images land next to the part-cache root and their paths appear in the
text. Legacy call sites emit byte-identical output while the new fields
are empty.

Boolean union/cut/intersect failures now classify at raise time:
disjoint operands report the exact min gap, closest points, closure
vector, and an operation-specific parameterized repair; edge/vertex/
tangent-only contact is distinguished from positive-volume overlap via
an intersection-volume probe. Evidence rendering is default-on for
failures (SCA_NO_DIAGNOSTIC_RENDER to disable); the test suite opts out
in conftest with dedicated render tests opting back in.

SimpleCADMessageError now keeps the display message separate from the
programmatic .message attribute (ArtifactValidationError str() had
drifted; 6 suite failures traced to match= assertions on it).

1825 passed, 5 skipped.
2026-09-12 03:54:52 +08:00

11 lines
346 B
Python

"""Shared test configuration."""
from __future__ import annotations
import os
# Failure-path evidence rendering stays off for the suite at large: it is
# slow (VTK worker per render) and exercises nothing those tests assert.
# Dedicated evidence tests opt back in via monkeypatch.delenv.
os.environ.setdefault("SCA_NO_DIAGNOSTIC_RENDER", "1")