Run artifact

workspace/targets/DrydockStats/blueprint/FEATURE-TestScript.md

FEATURE: Test Script

FieldValue
Version20261026 V1
DescriptionProvides a POSIX bin/test.sh that runs go vet and go test and exits zero only when both pass.
Depends OnARCHITECTURE.md
Providesbin/test.sh
Consumesgo.mod

Purpose

One command, sh bin/test.sh, gates every behavioral story and the Go test suite.

Behavior

Programmatic Acceptance

=== AC test-script-syntax ===
Intent: bin/test.sh exists and parses as POSIX sh.

import subprocess from pathlib import Path

script = Path("bin/test.sh") assert script.is_file() result = subprocess.run(["sh", "-n", str(script)], capture_output=True, text=True) print(result.stdout) print(result.stderr) assert result.returncode == 0 === END AC test-script-syntax ===

=== AC test-script-passes ===
Intent: sh bin/test.sh exits zero when go vet and every automated test pass.
Requires: executable=go; scope=test

import subprocess

result = subprocess.run(["sh", "bin/test.sh"], capture_output=True, text=True, timeout=1200) print(result.stdout) print(result.stderr) assert result.returncode == 0 === END AC test-script-passes ===

=== AC test-script-any-cwd ===
Intent: bin/test.sh finds the application root regardless of the caller's working directory.
Requires: executable=go; scope=test

import os import subprocess import tempfile

script = os.path.abspath("bin/test.sh") elsewhere = tempfile.mkdtemp() result = subprocess.run(["sh", script], capture_output=True, text=True, cwd=elsewhere, timeout=1200) print(result.stdout) print(result.stderr) assert result.returncode == 0 === END AC test-script-any-cwd ===

User Acceptance

Guardrails