File indexing completed on 2025-01-26 05:13:03
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