Skip to content

Commit

Permalink
enables test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
laysakura committed Dec 5, 2013
1 parent 585f300 commit 76e5dea
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .coveragerc
@@ -0,0 +1,20 @@
[run]
omit = rainbow_logging_handler/test/*
branch = True
parallel-mode = True


[report]
show_missing = True

# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
def __str__

# Code for supporting different version of Python
except ImportError:
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -10,6 +10,7 @@ python:
install:
- "pip install ."
- "python setup.py test" # for installing `tests_require`
- "pip install nose-cov" # why `nose-cov` isn't correctlly installed by `setup.py test` ?

# command to run tests
script:
Expand Down
11 changes: 11 additions & 0 deletions setup.cfg
@@ -0,0 +1,11 @@
[nosetests]
verbosity = 2
nocapture = 1
detailed-errors = 1
with-cov = 1
cov = rainbow_logging_handler
cov-config = .coveragerc
cov-report = html
# pdb = 1
# pdb-failures = 1
# ignore-files =
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -18,6 +18,8 @@
],
tests_require = [
'nose',
'coverage',
'nose-cov',
],
packages = [
'rainbow_logging_handler',
Expand Down

0 comments on commit 76e5dea

Please sign in to comment.