This commit is contained in:
Danilo Reyes
2026-01-30 23:17:02 -06:00
parent 527fad8da0
commit 97053901c0
17 changed files with 646 additions and 26 deletions

20
scripts/mcp-server/run-tests.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash
#!nix-shell -p python3 python3Packages.click python3Packages.ruff python3Packages.black python3Packages.mypy python3Packages.pytest
set -euo pipefail
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$here"
ruff check .
black --check .
mypy src
start=$(date +%s)
pytest
elapsed=$(( $(date +%s) - start ))
echo "Test suite duration: ${elapsed}s"
if [ $elapsed -gt 60 ]; then
echo "Test suite exceeded 60s budget." >&2
exit 1
fi