summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Peter Hammerle <fabianpeter.hammerle@catalysts.cc>2018-11-06 14:12:56 +0100
committerFabian Peter Hammerle <fabianpeter.hammerle@catalysts.cc>2018-11-06 14:12:56 +0100
commit5b8bb3c89d8f8ac61b8a9ffff4567be532705ea4 (patch)
treebbdf6fb66197e0b7d4c35a619b584133f1b59780
parentb4ecbef24d87631129e75925a2b23d88400e53a2 (diff)
downloadgitlab-ce-5b8bb3c89d8f8ac61b8a9ffff4567be532705ea4.tar.gz
CI/CD coverage docs: fix pytest-cov regex
adapted regular expression to correctly parse total coverage when using pytest-cov > ----------- coverage: platform linux, python 3.6.6-final-0 ----------- > Name Stmts Miss Cover > --------------------------------------------- > integrade/__init__.py 0 0 100% > integrade/api.py 86 0 100% > integrade/config.py 36 1 97% > integrade/exceptions.py 3 0 100% > integrade/utils.py 11 0 100% > tests/test_api.py 153 0 100% > tests/test_config.py 46 0 100% > tests/test_integrade.py 6 0 100% > tests/test_utils.py 12 0 100% > --------------------------------------------- > TOTAL 353 1 99% issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/48613
-rw-r--r--app/views/projects/settings/ci_cd/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/settings/ci_cd/_form.html.haml b/app/views/projects/settings/ci_cd/_form.html.haml
index 41afaa9ffc0..621b7922072 100644
--- a/app/views/projects/settings/ci_cd/_form.html.haml
+++ b/app/views/projects/settings/ci_cd/_form.html.haml
@@ -91,7 +91,7 @@
%code \(\d+.\d+\%\) covered
%li
pytest-cov (Python) -
- %code \d+\%\s*$
+ %code ^TOTAL\s+\d+\s+\d+\s+(\d+\%)$
%li
phpunit --coverage-text --colors=never (PHP) -
%code ^\s*Lines:\s*\d+.\d+\%