Skip to content

Commit

Permalink
Add branch coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ninezerozeronine committed May 20, 2019
1 parent a1e114e commit bbc0ac6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ install:
- pip install coveralls

script:
- tox
- tox -e travis
25 changes: 9 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@ envlist = py27

[testenv]

deps =
pytest
coverage
coveralls

commands =
coverage run --source=eight_bit_computer -m pytest
coverage report
coveralls

passenv = TRAVIS TRAVIS_*

[testenv:test]
deps =
pytest
Expand All @@ -30,17 +18,22 @@ deps =

commands =
coverage erase
coverage run --source=eight_bit_computer -m pytest
coverage run --source=eight_bit_computer --branch -m pytest
coverage report
# pytest --cov={envsitepackagesdir}/eight_bit_computer --cov-report=term --cov-report=html --basetemp={envtmpdir}
coverage html

[testenv:travis]
deps =
pytest
pytest-cov
coverage
coveralls

commands =
pytest --cov={envsitepackagesdir}/eight_bit_computer --cov-report=term --basetemp={envtmpdir}
coverage run --source=eight_bit_computer --branch -m pytest
coverage report
coveralls

passenv =
TRAVIS
TRAVIS_*

0 comments on commit bbc0ac6

Please sign in to comment.