FORGE-F008 Add unified testing toolkit for generated projects

This commit is contained in:
rob
2026-11-19 14:15:07 +00:00
parent b9cc14333a
commit 9dc4420373
20 changed files with 883 additions and 5 deletions
@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
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
fi
(cd "$root/api" && APP_ENV=testing .venv/bin/python -m pytest -c pytest.ini tests)
(cd "$root/react" && npm test -- --run)