npkpy/pytest.sh
2020-06-13 18:19:32 +02:00

11 lines
191 B
Bash
Executable file

!/bin/bash
if [ ! -z "$1" ]
then
clear; echo "test specific file: $1"
pytest --cov=./ $1 -v
else
clear; echo "test all project files"
pytest --cov=npkpy --cov=acceptance_test -v
fi