chore: wire tests into check.sh and document test suites

This commit is contained in:
2026-07-26 20:22:29 +04:00
parent 606175d718
commit f895800c9d
3 changed files with 69 additions and 0 deletions
+18
View File
@@ -98,6 +98,24 @@ if need shellcheck shellcheck; then
fi
fi
step "Tests unitaires PHP (tests/php/)"
if need php php-cli; then
if php tests/php/run.php; then
echo "✅ Tests PHP OK"
else
fail=1
fi
fi
step "Tests unitaires JS (tests/js/)"
if need node nodejs; then
if node tests/js/run.js; then
echo "✅ Tests JS OK"
else
fail=1
fi
fi
echo
if [ "$fail" -ne 0 ]; then
echo "❌ Des vérifications ont échoué — corrigez avant de pousser."