diff --git a/.gitignore b/.gitignore index 6c129c4d2..3864c8c2f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ .*.swp samples unihan.db +.coverage diff --git a/tools/tests.sh b/tools/tests.sh index 51f3d3dda..06d454df9 100755 --- a/tools/tests.sh +++ b/tools/tests.sh @@ -5,4 +5,4 @@ if [ -d 'locale' ]; then else dir=. fi -(cd $dir && nosetests -vs $@) +(cd $dir && nosetests -vs --with-coverage --cover-package=anki $@)