Store coverage files in .cov directory

pull/1295/head
Gulshan Singh 3 years ago
parent c73f79340c
commit 9a67233cd1

@ -35,12 +35,12 @@ jobs:
# We use `sudo` for `attachp` command tests
- name: Run tests
run: |
mkdir .cov
PWNDBG_GITHUB_ACTIONS_TEST_RUN=1 sudo --preserve-env ./tests.sh
- name: Process coverage data
if: matrix.os == 'ubuntu-22.04'
run: |
cd tests/gdb-tests
coverage combine
coverage xml

1
.gitignore vendored

@ -39,6 +39,7 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.cov/
.coverage
.coverage.*
.cache

@ -14,3 +14,4 @@ parallel = true
disable_warnings = ["module-not-imported"]
source = ["."]
omit = ["ida_script.py"]
data_file = ".cov/coverage"

@ -68,7 +68,8 @@ tests_failed=0
for test_case in ${TESTS_LIST}; do
gdb_args=(-ex 'py import coverage;coverage.process_startup()' --command $GDB_INIT_PATH --command pytests_launcher.py)
COVERAGE_PROCESS_START=$COVERAGERC_PATH \
COVERAGE_FILE=$ROOT_DIR/.cov/coverage \
COVERAGE_PROCESS_START=$COVERAGERC_PATH \
USE_PDB="${USE_PDB}" \
PWNDBG_LAUNCH_TEST="${test_case}" \
PWNDBG_DISABLE_COLORS=1 \

Loading…
Cancel
Save