Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Measure the code coverage and upload reports (except e2e)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Vasilyev committed Jun 4, 2019
1 parent 9c0dd36 commit cd63a6e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment:
layout: "header, sunburst, diff, tree"
flags:
- unit
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ env:
- MINIKUBE_IN_STYLE=true
- MINIKUBE_HOME=$HOME
- MINIKUBE_VERSION=1.0.1
- E2E=true # to not skip the e2e tests in pytest
matrix:
- KUBERNETES_VERSION=1.14.0
- KUBERNETES_VERSION=1.13.0
Expand All @@ -36,6 +35,9 @@ before_script:

script:
- pytest -v
- coveralls
- codecov --flags unit
- E2E=true pytest -v -k e2e # NB: after the coverage uploads!

deploy:
provider: pypi
Expand Down
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[pytest]
addopts =
--cov=kopf/
--cov-branch
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ urllib3<1.25
# Everything needed to develop (test, debug) the framework.
pytest-asyncio
pytest-mock
pytest-cov
pytest
asynctest
freezegun
codecov
coveralls

0 comments on commit cd63a6e

Please sign in to comment.