Skip to content

Commit 0eee8fe

Browse files
committed
Add coverage tracking with CodeCov
1 parent 0785df6 commit 0eee8fe

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

circle.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ machine:
33
version: '3.5.2'
44

55
dependencies:
6-
post:
7-
- pip install -r test-requirements.txt -r fast-requirements.txt
6+
override:
7+
- pip install -e .[fast]
8+
- pip install -r test-requirements.txt
89

910
test:
1011
override:
11-
- pytest test
12+
- pytest --cov
13+
post:
14+
- bash <(curl -s https://codecov.io/bash)
15+

setup.cfg

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[tool:pytest]
2+
norecursedirs =
3+
.git
4+
dist
5+
build
6+
.tox
7+
venv
8+
.env
9+
env
10+
testpaths =
11+
test
12+
13+
[coverage:run]
14+
branch = True
15+
source = structlog_pretty

test-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pytest==3.*
2+
pytest-cov==2.*

0 commit comments

Comments
 (0)