Skip to content

Commit

Permalink
fixed coverage handling in tox tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermann committed Apr 11, 2015
1 parent 088b296 commit e88c7d2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pip-log.txt
.coverage
.tox
nosetests.xml
coverage.xml
htmlcov/

# Translations
*.mo
Expand Down
11 changes: 11 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ formats = zip
# If you set this to 1, make sure you have a proper Travis CI build matrix,
# and that your Trove classifiers state you support Python 2 and 3
universal = 1


[pytest]
norecursedirs = .* *.egg *.egg-info bin dist include lib local share static docs
python_files = tests/test_*.py
#addopts =


[flake8]
#ignore = E226,…
max-line-length = 132
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ setenv =
commands =
python test_configobj.py
python -m configobj.validate
coverage run --source=configobj.py,validate.py -m py.test tests
coverage report
py.test -c {toxinidir}/setup.cfg --color=yes --cov=configobj \
--cov-report=term --cov-report=html --cov-report=xml \
{posargs}


[testenv:flake8]
Expand Down

0 comments on commit e88c7d2

Please sign in to comment.