FORGE-F008 Add unified testing toolkit for generated projects
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user