|
@@ -124,16 +124,10 @@ source .venv/bin/activate
|
|
|
cd code
|
|
|
# Execute tests
|
|
|
set -e
|
|
|
-PRINT_COV=true
|
|
|
-testpath="discover -s Test/"
|
|
|
if [ -e "Test/test_\$1.py" ]; then
|
|
|
- testpath="Test/test_\$1.py"
|
|
|
- PRINT_COV=false
|
|
|
-fi
|
|
|
-PYTHONWARNINGS="ignore" python3 -m coverage run --source=. -m unittest \$testpath >/dev/null
|
|
|
-if \$PRINT_COV ; then
|
|
|
- python3 -m coverage html
|
|
|
- python3 -m coverage report -m
|
|
|
+ python3 -m unittest "Test/test_\$1.py" >/dev/null
|
|
|
+else
|
|
|
+ python3 -m pytest Test --cov-config .coveragerc --cov-report html --cov=./ -n auto
|
|
|
fi
|
|
|
deactivate
|
|
|
EOF
|