This commit is contained in:
rob
2026-12-02 15:44:24 +00:00
parent cbcc9fa4b5
commit 8d01d02cc0
17 changed files with 125 additions and 35 deletions
+17 -3
View File
@@ -2,7 +2,7 @@
This package is copied into generated applications. `scripts/testtask.sh` starts,
checks, or stops a **manual development environment**. `scripts/testrunner.sh`
runs configured automated suites. Both use `scripts/target.py` to select a Git
runs configured automated suites. Both use `.bortstack/testing/target.py` to select a Git
worktree; neither needs Forge at runtime. This package does not migrate existing
Roborto application launchers. Forge's earlier `distribution/testtask` is a
separate existing-project automated runner and remains unchanged for its
@@ -17,12 +17,26 @@ The application owns `.bortstack/testing.json` (see
`config/testing.example.json`). A no-argument command uses the current worktree
and its checked-out branch. A branch name uses its existing worktree; a task ID
uses `docs/TASKS.md` headings and `Branch/worktree: \`name\`` references or a
matching branch slug. A branch needs no task record. Missing, ambiguous, and
detached targets fail without Git mutation.
matching branch slug. A branch needs no task record. Task headings accept a colon or dash separator, and three-digit targets such
as `134` also look up `TASK-134`. Missing or ambiguous targets fail without
Git mutation.
Generated Flask/React projects expose only `testtask.sh`, `testrunner.sh`
and `create-chatgpt-snapshot.sh` under `scripts/`. The testing implementation
and template-specific hooks live under `.bortstack/testing/`.
## Manual environments
`./scripts/testtask.sh [target] [--start|--status|--stop]` starts by default.
To use prepared acceptance snapshots for manual task IDs, set
`manual.acceptance_snapshots` in the launching checkout's testing
configuration to a directory such as `.test-worktrees`. A task target then
requires a registered detached Git worktree named after the lowercased task ID,
such as `.test-worktrees/task-134`. The command runs against the existing
snapshot files and its testing configuration. Prepare and verify the snapshot
before launch. Missing snapshots fail explicitly. Branch targets and automated
suites continue to resolve their own worktrees.
The current adapter supports Docker Compose. It uses a unique project name
derived from the selected worktree and branch, checks declared host ports,
starts only that project, verifies configured loopback readiness URLs, and