aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2014-07-10 22:57:14 -0400
committerWaylan Limberg <waylan@gmail.com>2014-07-10 22:57:14 -0400
commit5ecd68b81b487fcd4784c50cd8a1de6d23a2f62c (patch)
treeaae94f450defe9074ee20c9dd3416a1a5a7c8aa9
parentd10f73cc0184ef93e042c381eadc6f09642b52ee (diff)
downloadmarkdown-5ecd68b81b487fcd4784c50cd8a1de6d23a2f62c.tar.gz
markdown-5ecd68b81b487fcd4784c50cd8a1de6d23a2f62c.tar.bz2
markdown-5ecd68b81b487fcd4784c50cd8a1de6d23a2f62c.zip
Add Coverage (and Coveralls) support to tests.
Looks like we need to write some more tests. Only 76% covered.
-rw-r--r--.coveragerc3
-rw-r--r--.travis.yml3
-rw-r--r--tox.ini3
3 files changed, 8 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..097ce21
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,3 @@
+[run]
+omit=
+ markdown/__version__.py
diff --git a/.travis.yml b/.travis.yml
index 22a5855..7471163 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,5 +9,8 @@ before_install:
- sudo apt-get install libtidy-0.99-0
install:
- pip install tox
+ - pip install coveralls
script:
- tox
+after_success:
+ - coveralls
diff --git a/tox.ini b/tox.ini
index fc2207a..791a462 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,5 +4,6 @@ envlist = py26, py27, py31, py32, py33
[testenv]
downloadcache = {toxworkdir}/cache
deps = nose
+ coverage
git+https://github.com/waylan/pytidylib.git#egg=PyTidyLib
-commands = {envpython} {toxinidir}/run-tests.py {posargs}
+commands = {envpython} {toxinidir}/run-tests.py --with-coverage --cover-package=markdown {posargs}