Skip to content

Commit

Permalink
Add support for test coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
dkfellows committed Feb 8, 2018
1 parent a8b767f commit 1ec2527
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
branch = True
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
.settings
.cproject
Debug
/.cache
.coverage
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ before_install:
install:
# These things ought to be enough
- pip install -r requirements-test.txt
- pip install python-coveralls
- python ./setup.py install

before_script:
Expand All @@ -45,8 +46,8 @@ before_script:

script:
# Python
- py.test unittests
- py.test fec_integration_tests
- py.test unittests --cov spinn_front_end_common
- py.test fec_integration_tests --cov spinn_front_end_common --cov-append
- flake8 spinn_front_end_common
- flake8 unittests integration_tests
# XML
Expand All @@ -58,3 +59,7 @@ script:
- support/travis-sphinx.sh html -T -E -b html -d _build/doctrees-readthedocsdirhtml -D language=en . _build/html
- support/travis-sphinx.sh json -T -b json -d _build/doctrees-json -D language=en . _build/json
- support/travis-sphinx.sh singlehtml -T -b singlehtml -d _build/doctrees-readthedocssinglehtmllocalmedia -D language=en . _build/localmedia

after_success:
- cd $TRAVIS_BUILD_DIR
- coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/SpiNNakerManchester/SpiNNFrontEndCommon.svg?branch=master)](https://travis-ci.org/SpiNNakerManchester/SpiNNFrontEndCommon)
[![Coverage Status](https://coveralls.io/repos/github/SpiNNakerManchester/SpiNNFrontEndCommon/badge.svg?branch=master)](https://coveralls.io/github/SpiNNakerManchester/SpiNNFrontEndCommon?branch=master)

This package provides functionality which are common to front ends that
translate application level programs into executables which run on a SpiNNaker
Expand Down
2 changes: 2 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
-r requirements.txt
flake8
pytest>=2.8
pytest-cov
sphinx==1.5.3
testfixtures
httpretty

0 comments on commit 1ec2527

Please sign in to comment.