Skip to content

Commit

Permalink
test(functional): start tracking functional test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch committed May 1, 2021
1 parent 1e6305e commit f875786
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -55,6 +55,12 @@ jobs:
env:
TOXENV: ${{ matrix.toxenv }}
run: tox
- name: Upload codecov coverage
uses: codecov/codecov-action@v1
with:
files: ./coverage.xml
flags: ${{ matrix.toxenv }}
fail_ci_if_error: true

coverage:
runs-on: ubuntu-20.04
Expand Down
15 changes: 15 additions & 0 deletions codecov.yml
@@ -0,0 +1,15 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"

comment:
layout: "diff,flags,files"
behavior: default
require_changes: yes

github_checks:
annotations: true
9 changes: 7 additions & 2 deletions tox.ini
Expand Up @@ -74,8 +74,13 @@ omit = *tests*

[testenv:cli_func_v4]
deps = -r{toxinidir}/docker-requirements.txt
commands = pytest --script-launch-mode=subprocess tools/functional/cli {posargs}
commands =
pytest --cov gitlab --cov-report term --cov-report html --cov-report xml \
--script-launch-mode=subprocess \
tools/functional/cli {posargs}

[testenv:py_func_v4]
deps = -r{toxinidir}/docker-requirements.txt
commands = pytest tools/functional/api {posargs}
commands =
pytest --cov gitlab --cov-report term --cov-report html --cov-report xml \
tools/functional/api {posargs}

0 comments on commit f875786

Please sign in to comment.