diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..526bbe3 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,9 @@ +[run] +source = physicsLab/ +omit = */mido/* + +[report] +show_missing = False + +[json] +output = coverage.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 629260a..bbfc71c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,8 +29,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install typing-extensions requests colorama + pip install typing-extensions requests colorama coverage - name: Test with unittest run: | - python -m unittest test_pl -v + coverage run -m unittest test_pl -v + + - name: Generate coverage report + run: | + coverage report diff --git a/.gitignore b/.gitignore index 211adf6..0f0dfce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -/.* +.coverage +htmlcov/ /venv