Skip to content

Commit

Permalink
Track code coverage in subprocesses
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyene committed Jun 3, 2020
1 parent b059420 commit cbcb6cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ exclude_lines =
ignore_errors = True

[run]
concurrency = multiprocessing
source = dmoj
omit =
dmoj/cli.py
dmoj/citest.py
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ script:
#!/bin/bash -e
. ~/.profile
cd /code
"$PYTHON" -m coverage run --source=dmoj -m unittest discover dmoj/tests/
"$PYTHON" -m coverage run --append --source=dmoj .docker.test.py
"$PYTHON" -m coverage run -m unittest discover dmoj/tests/
"$PYTHON" -m coverage run --append .docker.test.py
"$PYTHON" -m coverage combine
"$PYTHON" -m coverage xml
EOF
- chmod a+x run run-su
Expand Down

0 comments on commit cbcb6cd

Please sign in to comment.