Skip to content

Commit a0869ca

Browse files
Merge pull request #14 from wellcometrust/feature/ivyleavedtoadflax/codecov
Add coverage to test reports
2 parents d899489 + 3fc7f85 commit a0869ca

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ embeddings/
1111
models/
1212
.tox/
1313
*__pycache__/
14+
.coverage
15+

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ $(test_artefacts):
144144

145145
.PHONY: test
146146
test: $(test_artefacts) test_embedding
147-
$(VIRTUALENV)/bin/pytest --disable-warnings --tb=line
147+
$(VIRTUALENV)/bin/pytest --disable-warnings --tb=line --cov=deep_reference_parser
148148

149149
all: virtualenv model embedding test

requirements_test.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
pytest
22
tox
3+
codecov
4+
pytest-cov

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"matplotlib",
5151
],
5252
tests_require=[
53-
"pytest"
53+
"pytest",
54+
"pytest-cov"
5455
],
5556
)

0 commit comments

Comments
 (0)