Fix coverage paths

This commit is contained in:
Alexander 2018-04-11 19:54:18 +03:00
parent 162b21bb75
commit e6af67d513
3 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ build_script:
test_script: test_script:
- cd c:\pillow - cd c:\pillow
- '%PYTHON%\%PIP_DIR%\pip.exe install pytest pytest-cov' - '%PYTHON%\%PIP_DIR%\pip.exe install pytest pytest-cov'
- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov-report term --cov-report xml Tests' - '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov src/PIL --cov-report term --cov-report xml Tests'
#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest? #- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
after_test: after_test:

View File

@ -7,7 +7,7 @@ make clean
make install-coverage make install-coverage
python selftest.py python selftest.py
python -m pytest -vx --cov PIL --cov-report term Tests python -m pytest -vx --cov src/PIL --cov-report term Tests
pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd

View File

@ -25,7 +25,7 @@ Run all the tests from the root of the Pillow source distribution::
Or with coverage:: Or with coverage::
pytest -vx --cov PIL --cov-report term Tests pytest -vx --cov src/PIL --cov-report term Tests
coverage html coverage html
open htmlcov/index.html open htmlcov/index.html