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
@@ -9,13 +9,13 @@
"ports": {"BORTSTACK_API_PORT": 5001, "BORTSTACK_WEB_PORT": 8081},
"readiness": ["http://127.0.0.1:5001/api/health/ready", "http://127.0.0.1:8081/"],
"urls": ["http://127.0.0.1:8081/"],
"authentication": {"required": true, "provision": ["python3", "scripts/provision-test-user.py"]}
"authentication": {"required": true, "provision": ["python3", ".bortstack/testing/provision-test-user.py"]}
},
"automated": {
"default": ["unit"],
"suites": {
"unit": {"command": ["./scripts/run-unit-tests.sh"], "cwd": "."},
"integration": {"command": ["./scripts/run-integration-tests.sh"], "cwd": "."}
"unit": {"command": ["./.bortstack/testing/run-unit-tests.sh"], "cwd": "."},
"integration": {"command": ["./.bortstack/testing/run-integration-tests.sh"], "cwd": "."}
},
"act": []
}
@@ -1,6 +1,6 @@
#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
root=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)
if [ ! -d "$root/react/node_modules" ]; then
echo 'integration tests unavailable: install react/node_modules first' >&2
exit 3
@@ -1,6 +1,6 @@
#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
root=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)
if [ ! -x "$root/api/.venv/bin/python" ] || [ ! -d "$root/react/node_modules" ]; then
echo 'unit tests unavailable: install api/.venv and react/node_modules first' >&2
exit 3
+2 -1
View File
@@ -28,9 +28,10 @@ The generated testing toolkit is available without Forge at runtime:
./scripts/testtask.sh --stop # stops only this worktree's Compose project
./scripts/testrunner.sh --unit
./scripts/testrunner.sh --integration
./scripts/create-chatgpt-snapshot.sh # ZIP of the current checkout after the first commit
```
The toolkit uses Git worktree metadata. Generate with `--git-init` or initialise
Testing helpers are under `.bortstack/testing/`. The toolkit uses Git worktree metadata. Generate with `--git-init` or initialise
Git locally before using the commands; an initial commit is not required for
the current worktree. Explicit branch targets require a local branch ref and
an existing checkout.
@@ -0,0 +1,4 @@
#!/bin/sh
set -eu
repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
exec python3 "$repo/.bortstack/create-chatgpt-snapshot.py" "$repo"