Trying to get better coverage report.

This commit is contained in:
Salvador E. Tropea 2021-01-29 15:50:53 -03:00
parent b53ffbb032
commit 8492786dcc
2 changed files with 3 additions and 2 deletions

View File

@ -35,8 +35,9 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
src/kibot --help-outputs
python3-coverage erase
# Create the caches with macros
python3-coverage run -a src/kibot --help-outputs > /dev/null
pytest-3 --test_dir output
python3-coverage report
python3-coverage html -d output/htmlcov

View File

@ -77,7 +77,7 @@ test_docker_local:
# Run in the same directory to make the __pycache__ valid
# Also change the owner of the files to the current user (we run as root like in GitHub)
docker run --rm -v $(CWD):$(CWD) --workdir="$(CWD)" setsoft/kicad_auto_test:latest \
/bin/bash -c "flake8 . --count --statistics ; src/kibot --help-outputs ; pytest-3 --test_dir output ; $(PY_COV) html; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ .coverage htmlcov/"
/bin/bash -c "flake8 . --count --statistics ; python3-coverage run -a src/kibot --help-outputs ; pytest-3 --test_dir output ; $(PY_COV) html; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ .coverage htmlcov/"
$(PY_COV) report
x-www-browser htmlcov/index.html