scripts
This commit is contained in:
@@ -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
-1
@@ -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
-1
@@ -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
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user