Skip to content

Commit fb8dece

Browse files
alexwlchanbcail
authored andcommitted
Start collecting coverage data in CI (loris-imageserver#325)
1 parent d975745 commit fb8dece

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.coveragerc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[run]
2+
branch = True
3+
include =
4+
loris/*.py
5+
6+
[report]
7+
show_missing = True

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ xb526qv4524_05_0001.jp2
3131
todo.md
3232

3333
.hypothesis
34+
35+
.coverage

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ install:
2323
- pip install -r requirements.txt
2424
- pip install -r requirements_test.txt
2525

26-
script: "python test.py"
26+
script:
27+
- "coverage run ./test.py"
28+
- "coverage report"
2729

2830
notifications:
2931
email:

requirements_test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
coverage==4.4.1
12
hypothesis >= 3.11.6

0 commit comments

Comments
 (0)