diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..b1a70dbd0 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,10 @@ +[report] +exclude_lines = + pragma: no cover + def __repr__ + if self.debug: + if settings.DEBUG + raise AssertionError + raise NotImplementedError + if 0: + if __name__ == .__main__.: \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 965c002b1..936fa8e32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,6 @@ install: - pip install -r dev-requirements.txt - pip install -e . script: - - pytest --cov=labgrid + - pytest --cov-config .coveragerc --cov=labgrid after_success: - coveralls