summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@carta.com>2019-11-26 23:24:18 -0300
committerPaulo Henrique Silva <ph.silva@gmail.com>2019-11-26 23:31:48 -0300
commit39d77665782a9a116ce502b04b03fc7ee6821608 (patch)
treeed3bda67866d101cb09fda415a61f1aa7f35f7cf
parent95aea8e6909a3e24c0eab055851c72f81d694ae8 (diff)
downloadgerbonara-39d77665782a9a116ce502b04b03fc7ee6821608.tar.gz
gerbonara-39d77665782a9a116ce502b04b03fc7ee6821608.tar.bz2
gerbonara-39d77665782a9a116ce502b04b03fc7ee6821608.zip
Add .coveragerc
-rw-r--r--.coveragerc8
-rw-r--r--Makefile4
2 files changed, 11 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..3399dbe
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,8 @@
+[run]
+branch = True
+source = gerber
+
+[report]
+ignore_errors = True
+omit =
+ gerber/tests/*
diff --git a/Makefile b/Makefile
index 96df768..8ecbf86 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ EXAMPLES = examples
clean: doc-clean
find . -name '*.pyc' -delete
rm -rf *.egg-info
+ rm -f .coverage
rm -f coverage.xml
.PHONY: test
@@ -17,7 +18,8 @@ test:
.PHONY: test-coverage
test-coverage:
- rm -rf coverage.xml
+ rm -f .coverage
+ rm -f coverage.xml
$(PYTEST) --cov=./ --cov-report=xml
.PHONY: install