File indexing completed on 2024-04-21 05:41:06

0001 #!/bin/sh
0002 set -e
0003 # This script runs both unit and functional tests using [coverage][1], and
0004 # combine the results in one file to get the union of both tests.
0005 #
0006 # [1]: https://pypi.org/project/coverage/
0007 
0008 cd $(dirname $0)/..
0009 
0010 echo "# Running unit tests"
0011 (cd tests/unit && python3 -m coverage run -p --source doxyqml tests.py)
0012 
0013 echo "# Running functional tests"
0014 (cd tests/functional && python3 -m coverage run -p --source doxyqml tests.py --import)
0015 
0016 echo "# Combining"
0017 python3 -m coverage combine tests/unit tests/functional