Debian Codegraph @

tests/run-coverage

raw
1 #!/bin/sh
2 set -e
3 # This script runs both unit and functional tests using [coverage][1], and
4 # combine the results in one file to get the union of both tests.
5 #
6 # [1]: https://pypi.org/project/coverage/
7
8 cd $(dirname $0)/..
9
10 echo "# Running unit tests"
11 (cd tests/unit && python3 -m coverage run -p --source doxyqml tests.py)
12
13 echo "# Running functional tests"
14 (cd tests/functional && python3 -m coverage run -p --source doxyqml tests.py --import)
15
16 echo "# Combining"
17 python3 -m coverage combine tests/unit tests/functional