runtests 352 Bytes
Newer Older
1
#!/bin/sh
Štěpán Henek's avatar
Štěpán Henek committed
2 3 4 5 6 7 8 9

# to run the tests you'd need to have following packages installed:
# * pytest
# * nose
# * mock
#
# you can install it via pip

10
cd foris
11
if [ "$1" == "coverage" ]; then
12
    shift
13
    nosetests --with-coverage  --cover-xml --cover-xml-file=/tmp/foris_coverage.xml --cover-erase --cover-package=. --verbose $@
14
else
Štěpán Henek's avatar
Štěpán Henek committed
15
    pytest --verbose $@
16
fi