From cebe70d471d222fa3296424d0dfdd63b6bd171af Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Thu, 8 Dec 2016 14:54:53 -0500 Subject: [PATCH] Setup for Coverage and Codcov.io (#6) * coverage * coveragerc * fix placeholder --- .coveragerc | 13 +++++++++++++ requirements.txt | 1 + setup.cfg | 9 +++++++++ 3 files changed, 23 insertions(+) create mode 100644 .coveragerc create mode 100644 setup.cfg diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..e227db0 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,13 @@ +[run] +branch = True +source = dbfilestorage + +[report] +exclude_lines = + if self.debug: + pragma: no cover + raise NotImplementedError + if __name__ == .__main__.: +ignore_errors = True +omit = + tests/* diff --git a/requirements.txt b/requirements.txt index edde82d..d09cb1e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ Django==1.10.4 Sphinx==1.5 +coverage==4.2 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..1e9c139 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,9 @@ +[nosetests] +verbosity=1 +detailed-errors=1 +with-coverage=1 +cover-package=dbfilestorage +debug=nose.loader +pdb=1 +pdb-failures=1 +