DEVX-13: feat: add per-test timing quality gate to check_test_speed

This commit is contained in:
emil
2026-06-23 16:25:50 +00:00
parent 547fef4f27
commit c20dfd185a
9 changed files with 1488 additions and 1225 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
# pre-commit hook: fail if unit tests take longer than 10 seconds.
# Aligned with CI timeout (ci.yml uses --max-seconds 10).
# pre-commit hook: fail if unit tests are too slow.
# Checks both total suite time (10s) and per-test time (0.5s).
# Aligned with CI (ci.yml uses same thresholds).
set -e
export PYTHONPATH=src
python3 -m devx.tools.check_test_speed --max-seconds 10
python3 -m devx.tools.check_test_speed --max-seconds 10 --max-single-seconds 0.5