Skip to content

Commit

Permalink
#114 Add script to build test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
roskakori committed Jun 30, 2023
1 parent 0888a5e commit 15e4221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To build and browse the coverage report in HTML format:

.. code-block:: bash
$ poetry run pytest --cov-report=html
$ sh scripts/test_coverage.sh
$ open htmlcov/index.html # macOS only
Expand Down
4 changes: 4 additions & 0 deletions scripts/test_coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e
poetry run pytest --cov-reset --cov=pygount --cov-branch --cov-report html
echo "To view results run: firefox htmlcov/index.html &"

0 comments on commit 15e4221

Please sign in to comment.