Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Mar 9, 2023
1 parent 89850da commit 2906f3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[run]
relative_files = True

[report]
include =
src/design/*
*/src/design/*
omit =
*/test*
*/upgrades/*
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
cp test_plone${{ matrix.plone }}.cfg buildout.cfg
- name: Install buildout
run: |
buildout -N -t 3 -vvvv code-analysis:return-status-codes=True
buildout -N -t 3 code-analysis:return-status-codes=True
- name: Run tests
run: |
bin/test-coverage
Expand Down
2 changes: 1 addition & 1 deletion base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ input = inline:
export TZ=UTC
${buildout:directory}/bin/coverage run bin/test $*
${buildout:directory}/bin/coverage html
${buildout:directory}/bin/coverage report -m --fail-under=75
${buildout:directory}/bin/coverage report -m --fail-under=50
# Fail (exit status 1) if coverage returns exit status 2 (this happens
# when test coverage is below 100%.
${buildout:directory}/bin/coverage json -i
Expand Down

0 comments on commit 2906f3e

Please sign in to comment.