summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKane Blueriver <kxxoling@gmail.com>2015-06-11 18:58:48 +0800
committerKane Blueriver <kxxoling@gmail.com>2015-06-11 18:59:17 +0800
commitda5d8b0008d69629f089bc50c59cd598ca9f9d0e (patch)
treea0cee5d260b37dc7506b497ccce01c89fbc641a0
parent14a02ed689799535e57b8edace40d1a34829003d (diff)
downloadpython-prettytable-ptable-da5d8b0008d69629f089bc50c59cd598ca9f9d0e.tar.gz
Adjust test, coverage command
-rw-r--r--Makefile7
-rw-r--r--tox.ini6
2 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 343363c..0120dbd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
.PHONY: all test
COVERAGE_DIR = .cover
+COVER_PERC = 75
PACKAGE_NAME = prettytable
-all: test
+all: coverage
-test: coverage
+test:
+ @nosetests
+ @nosetests --with-coverage --cover-min-percentage=$(COVER_PERC)
clean: clean-pyc clean-build clean-cover
diff --git a/tox.ini b/tox.ini
index 4b7b65f..377842a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,4 +1,8 @@
[tox]
envlist = py27,py3
+
[testenv]
-commands=make test
+deps = nose
+ coverage
+commands = make test
+