Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/913909 )
Change subject: [tests] Add coverage statistics ......................................................................
[tests] Add coverage statistics
Change-Id: If70ff2a0e9ab7f806489bbd870f2a699970ee658 --- M .appveyor.yml M .github/workflows/doctest.yml M .github/workflows/write_tests-ci.yml M .github/workflows/oauth_tests-ci.yml M .github/workflows/pywikibot-ci.yml M .github/workflows/login_tests-ci.yml 6 files changed, 31 insertions(+), 0 deletions(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/.appveyor.yml b/.appveyor.yml index 1bf60ff..dcb0b15 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -89,6 +89,7 @@ on_finish: - ps: | $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH + coverage report Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh bash codecov.sh -U "-s" -A "-s"
diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml index 4114edf..8a59bed 100644 --- a/.github/workflows/doctest.yml +++ b/.github/workflows/doctest.yml @@ -69,5 +69,10 @@ python pwb.py version pytest --version coverage run -m pytest pywikibot --doctest-modules --ignore-glob="*gui.py" --ignore-glob="*memento.py" + + - name: Show coverage statistics + run: | + coverage report + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 diff --git a/.github/workflows/login_tests-ci.yml b/.github/workflows/login_tests-ci.yml index 872347e..c4904e7 100644 --- a/.github/workflows/login_tests-ci.yml +++ b/.github/workflows/login_tests-ci.yml @@ -119,5 +119,9 @@ python pwb.py version coverage run -m unittest -vv tests/site_login_logout_tests.py
+ - name: Show coverage statistics + run: | + coverage report + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 diff --git a/.github/workflows/oauth_tests-ci.yml b/.github/workflows/oauth_tests-ci.yml index c12e96e..1d8eb90 100644 --- a/.github/workflows/oauth_tests-ci.yml +++ b/.github/workflows/oauth_tests-ci.yml @@ -104,5 +104,9 @@ python pwb.py version coverage run -m unittest -vv tests/oauth_tests.py
+ - name: Show coverage statistics + run: | + coverage report + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml index 5ead7d4..551f798 100644 --- a/.github/workflows/pywikibot-ci.yml +++ b/.github/workflows/pywikibot-ci.yml @@ -135,6 +135,10 @@ pytest --cov=.; fi
+ - name: Show coverage statistics + run: | + coverage report + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3
diff --git a/.github/workflows/write_tests-ci.yml b/.github/workflows/write_tests-ci.yml index b8d0540..0327e70 100644 --- a/.github/workflows/write_tests-ci.yml +++ b/.github/workflows/write_tests-ci.yml @@ -75,6 +75,10 @@ python pwb.py version pytest -a write --cov=.;
+ - name: Show coverage statistics + run: | + coverage report + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3
pywikibot-commits@lists.wikimedia.org