diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..dac7851 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,19 @@ +[run] +branch = True +source = preserialize + +[report] +exclude_lines = + pragma: no cover + def __repr__ + def __str__ + def __unicode__ + if self.debug: + if settings.DEBUG + raise AssertionError + raise NotImplemented(Error)? + if 0: + if __name__ == .__main__.: + +[html] +directory = coverage diff --git a/.travis.yml b/.travis.yml index 4670beb..46494f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,9 @@ env: - DJANGO=1.4.5 - DJANGO=1.5.1 install: + - pip install coveralls - pip install -q Django==$DJANGO --use-mirrors script: - - python setup.py test + - coverage run --source=preserialize setup.py test +after_success: + - coveralls