test
raw| 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright 2014-2018 Facundo Batista, Nicolás Demarchi |
| 4 | |
| 5 | set -eu |
| 6 | |
| 7 | if [ $# -ne 0 ]; then |
| 8 | TARGET_TESTS="$@" |
| 9 | else |
| 10 | TARGET_TESTS="" |
| 11 | fi |
| 12 | |
| 13 | ./bin/fades -r requirements.txt -d pytest-cov -x pytest --cov=fades $TARGET_TESTS |
| 14 | |
| 15 | # check if we are using exit() in the code. |
| 16 | if grep -r -n ' exit(' --include="*.py" .; then echo 'Please use sys.exit() instead of exit(). https://github.com/PyAr/fades/issues/280'; fi |