Skip to content

Commit

Permalink
Add basic code coverage report for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stsnel committed Jan 25, 2024
1 parent f8ee2dc commit ada1639
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install coveragepy==1.6.0
- name: Run unit tests
run: |
cd unit-tests
python2 -m unittest unit_tests
coverage run --omit=test_*.py,unit_tests.py --source=$(cd .. ; pwd),$(cd ../util ; pwd) -m unittest unit_tests
- name: Report code coverage
run: |
cd unit-tests
coverage report

0 comments on commit ada1639

Please sign in to comment.