Permalink
Browse files

100% coverage and coveralls support

  • Loading branch information...
1 parent b6136f6 commit 832c2235659411360393a0ddd66b00e80c657c93 @WoLpH committed Sep 23, 2013
Showing with 44 additions and 3 deletions.
  1. +15 −0 .coveragerc
  2. +13 −0 examples.py
  3. +5 −3 setup.cfg
  4. +11 −0 tox.ini
View
@@ -0,0 +1,15 @@
+[run]
+branch = True
+source =
+ progressbar
+ tests
+omit =
+ */mock/*
+ */nose/*
+[paths]
+source =
+ progressbar
+[report]
+exclude_lines =
+ pragma: no cover
+ @abc.abstractmethod
View
@@ -278,6 +278,19 @@ def with_example22():
assert e
+@example
+def example23():
+ widgets = [BouncingBar(marker=RotatingMarker())]
+ with ProgressBar(widgets=widgets, maxval=20, term_width=10) as progress:
+ for i in range(20):
+ progress.update(i)
+
+ widgets = [BouncingBar(marker=RotatingMarker(), fill_left=False)]
+ with ProgressBar(widgets=widgets, maxval=20, term_width=10) as progress:
+ for i in range(20):
+ progress.update(i)
+
+
if __name__ == '__main__':
try:
for example in examples:
View
@@ -4,12 +4,14 @@ description-file = README.rst
[nosetests]
verbosity=3
with-doctest=1
+with-coverage=1
+cover-package=progressbar
+cover-min-percentage=100
detailed-errors=1
debug=nose.loader
pdb=1
-#pdb-failures=1
-with-coverage=1
-cover-package=progressbar
+pdb-failures=1
+
[build_sphinx]
source-dir = docs/
View
11 tox.ini
@@ -0,0 +1,11 @@
+[tox]
+envlist = py26, py27
+
+[testenv]
+deps =
+ nose
+ coverage
+
+commands =
+ nosetests
+

0 comments on commit 832c223

Please sign in to comment.