added `--strict` and `-vv` to pytest calls (#5453)

This commit is contained in:
Oliver Stöneberg 2023-09-18 13:57:27 +02:00 committed by GitHub
parent e611b18ffc
commit 176edbd22c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

View File

@ -366,11 +366,11 @@ jobs:
- name: Run test/cli
run: |
cd test/cli
python3 -m pytest test-*.py
python3 -m pytest --strict -vv test-*.py
cd ../../..
ln -s cppcheck 'cpp check'
cd 'cpp check/test/cli'
python3 -m pytest test-*.py
python3 -m pytest --strict -vv test-*.py
- name: Run cfg tests
if: matrix.os != 'ubuntu-22.04'

View File

@ -168,13 +168,13 @@ jobs:
copy .\bin\cppcheck.exe .\cppcheck.exe || exit /b !errorlevel!
copy .\bin\cppcheck-core.dll .\cppcheck-core.dll || exit /b !errorlevel!
cd test/cli || exit /b !errorlevel!
:: python -m pytest --suppress-no-test-exit-code test-clang-import.py || exit /b !errorlevel!
python -m pytest test-helloworld.py || exit /b !errorlevel!
python -m pytest test-inline-suppress.py || exit /b !errorlevel!
python -m pytest test-more-projects.py || exit /b !errorlevel!
python -m pytest test-other.py || exit /b !errorlevel!
python -m pytest test-proj2.py || exit /b !errorlevel!
python -m pytest test-suppress-syntaxError.py || exit /b !errorlevel!
:: python -m pytest --strict -vv --suppress-no-test-exit-code test-clang-import.py || exit /b !errorlevel!
python -m pytest --strict -vv test-helloworld.py || exit /b !errorlevel!
python -m pytest --strict -vv test-inline-suppress.py || exit /b !errorlevel!
python -m pytest --strict -vv test-more-projects.py || exit /b !errorlevel!
python -m pytest --strict -vv test-other.py || exit /b !errorlevel!
python -m pytest --strict -vv test-proj2.py || exit /b !errorlevel!
python -m pytest --strict -vv test-suppress-syntaxError.py || exit /b !errorlevel!
- name: Test addons
if: matrix.config == 'release'

View File

@ -137,7 +137,7 @@ jobs:
- name: test addons
run: |
python -m pytest -v addons/test/test-*.py
python -m pytest --strict -vv addons/test/test-*.py
env:
PYTHONPATH: ./addons
@ -149,21 +149,21 @@ jobs:
- name: test reduce
run: |
python -m pytest -v tools/test_reduce.py
python -m pytest --strict -vv tools/test_reduce.py
env:
PYTHONPATH: ./tools
- name: test donate_cpu_lib
if: matrix.python-version != '2.7'
run: |
python -m pytest -v tools/test_donate_cpu_lib.py
python -m pytest --strict -vv tools/test_donate_cpu_lib.py
env:
PYTHONPATH: ./tools
- name: test donate_cpu_server
if: matrix.python-version != '2.7'
run: |
python -m pytest -v tools/test_donate_cpu_server.py
python -m pytest --strict -vv tools/test_donate_cpu_server.py
env:
PYTHONPATH: ./tools