1. Jan-Philip Gehrcke
  2. gipc


Jan-Philip Gehrcke  committed 0876c74

Update audit and docs regarding code coverage.

  • Participants
  • Parent commits 04f4623
  • Branches default

Comments (0)

Files changed (2)


View file
 I use `pep8 <http://pypi.python.org/pypi/pep8>`_ and
 `pylint <http://pypi.python.org/pypi/pylint>`_. Have a look at ``audit.sh`` in
-the code repository.
+the code repository. Unit test code coverage analysis requires
+`coverage <http://pypi.python.org/pypi/coverage>`_ and
+`pytest-cov <http://pypi.python.org/pypi/pytest-cov>`_. ``audit.sh`` leaves
+behind a coverage HTML report in the ``coverage_html`` directory.
 Contact & Help
 Your feedback and questions are highly appreciated. For now, please contact me

File audit.sh

View file
-echo "Running gipc unit tests..."
-cd test
-cd ..
+echo "Running gipc unit tests, investigate code coverage..."
+py.test --cov gipc test
+if [ -d coverage_html ]; then
+    rm -rf coverage_html/*
+coverage html -d coverage_html
 echo -e "\n\nRunning setup.py check & readme2html..."
 python setup.py check
 python setup.py --long-description | rst2html.py > /dev/null
 echo -e "\n\nRunning PEP8 check..."
 echo -e "\n\nRunning pylint..."
-cd gipc
-pylint --reports=n --include-ids=y --disable=C0103,W0212,W0511,W0142,R0903 gipc.py
-cd ..
+pylint --reports=n --include-ids=y --disable=C0103,W0212,W0511,W0142,R0903 gipc/gipc.py