Run artifact

workspace/targets/CsvStat/blueprint/FEATURE-TEST-GATE.md

FEATURE: Test Gate

FieldValue
Version20261023 V1
DescriptionProvide the project test launcher and focused automated coverage.
Depends OnFEATURE-CLI-FOUNDATION.md
Providesbin/test.sh
ConsumesGo module and command packages

Test Gate

bin/test.sh runs go vet ./... and go test ./... from the application root. It exits zero only when both commands succeed. The repository test suite should cover parsing, normalization, inference, statistics, rendering, frequency behavior, and exit-code mapping.

Programmatic Acceptance

=== AC test-gate-present ===
Intent: The project provides an executable POSIX test launcher. import os import pathlib

path = pathlib.Path("bin/test.sh") assert path.is_file() assert os.access(path, os.X_OK) === END AC test-gate-present ===

=== AC test-gate-runs ===
Intent: The project test launcher completes successfully. import os import subprocess

result = subprocess.run( ["sh", "bin/test.sh"], capture_output=True, text=True, env={**os.environ}, ) print(result.stdout) print(result.stderr) assert result.returncode == 0 === END AC test-gate-runs ===

=== AC go-vet-and-tests ===
Intent: The launcher exercises both the Go vet and Go test commands. import pathlib

text = pathlib.Path("bin/test.sh").read_text() assert "go vet ./..." in text assert "go test ./..." in text === END AC go-vet-and-tests ===

User Acceptance

Guardrails