Add test runner script with base and new modes
This commit is contained in:
parent
e82db2ca3a
commit
ca7269d1a7
1 changed files with 17 additions and 0 deletions
17
test.sh
Normal file
17
test.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue