summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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