File: run-coverage

package info (click to toggle)
doxyqml 0.5.3-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 412 kB
  • sloc: python: 1,349; cpp: 165; makefile: 9; sh: 8
file content (17 lines) | stat: -rwxr-xr-x 522 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e
# This script runs both unit and functional tests using [coverage][1], and
# combine the results in one file to get the union of both tests.
#
# [1]: https://pypi.org/project/coverage/

cd $(dirname $0)/..

echo "# Running unit tests"
(cd tests/unit && python3 -m coverage run -p --source doxyqml tests.py)

echo "# Running functional tests"
(cd tests/functional && python3 -m coverage run -p --source doxyqml tests.py --import)

echo "# Combining"
python3 -m coverage combine tests/unit tests/functional