Add test runner script with base and new modes

This commit is contained in:
Mishradity 2026-02-18 16:49:26 +05:30
parent e82db2ca3a
commit ca7269d1a7

17
test.sh Normal file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
MODE=$1
if [ "$MODE" = "base" ]; then
echo "Running base (existing) tests..."
pytest
elif [ "$MODE" = "new" ]; then
echo "Running new tests only..."
pytest tests/test_views.py
else
echo "Usage:"
echo " ./test.sh base # run existing tests"
echo " ./test.sh new # run new tests only"
exit 1
fi