aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-17 11:33:25 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-17 11:33:25 -0700
commitdfec385e24629cd8ae9669cd91e091414bc7dcca (patch)
treec688d7f195c93cf04f3f900ef2d8fdbc5cd09bfc
parent55ec15bb1aa158f783ec359ad1a27c979edc233d (diff)
downloadsandcrawler-dfec385e24629cd8ae9669cd91e091414bc7dcca.tar.gz
sandcrawler-dfec385e24629cd8ae9669cd91e091414bc7dcca.zip
fix coverage command
-rw-r--r--python/.coveragerc4
-rw-r--r--python/Makefile2
2 files changed, 4 insertions, 2 deletions
diff --git a/python/.coveragerc b/python/.coveragerc
index 6235f57..67053a7 100644
--- a/python/.coveragerc
+++ b/python/.coveragerc
@@ -1,3 +1,5 @@
[run]
omit = tests/*
-source = .
+source =
+ sandcrawler
+ grobid2json
diff --git a/python/Makefile b/python/Makefile
index 52cdfc8..be876f7 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -29,5 +29,5 @@ test: lint ## Run all tests and lints
.PHONY: coverage
coverage: ## Run all tests with coverage
- pipenv run pytest
+ pipenv run pytest --cov