Closed bernhardkaindl closed 7 months ago
Pytest Code coverage comment for Python 2.7
File Stmts Miss Cover Missing integration __init__.py 0 0 100% conftest.py 18 0 100% namespace_container.py 35 1 97% 114 test_system_load.py 18 0 100% test_xenserverconfig.py 15 0 100% utils.py 68 10 85% 19, 32, 62–65, 71, 91, 94, 151 mocks/xen __init__.py 0 0 100% mocks/xen/lowlevel __init__.py 0 0 100% mocks/xen/lowlevel/xc __init__.py 5 0 100% unit __init_\.py 0 0 100% conftest.py 52 9 82% 68, 70–74, 77–79 test_dir_list.py 11 0 100% test_dump_xapi_procs.py 12 0 100% test_dump_xapi_rrds.py 65 1 98% 12 test_filter_xapi_clusterd_db.py 78 0 100% test_fs_funcs.py 14 0 100% test_load_plugins.py 9 0 100% test_main.py 134 1 99% 131 test_output.py 73 0 100% test_process_output.py 11 0 100% test_snmp.py 15 0 100% test_xapidb_filter.py 21 0 100% TOTAL 654 22 96%
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
36 | 0 :zzz: | 0 :x: | 0 :fire: | 2.260s :stopwatch: |
Merging #97 (8c29fd5) into master (d0e569d) will increase coverage by
10%
. Report is 16 commits behind head on master. The diff coverage is100%
.
Python3 coverage comment from https://github.com/marketplace/actions/pytest-coverage-comment
File Stmts Miss Cover Missing __init__.py 0 0 100% conftest.py 60 0 100% test_dir_list.py 11 0 100% test_dump_xapi_procs.py 12 0 100% test_dump_xapi_rrds.py 67 0 100% test_filter_xapi_clusterd_db.py 78 0 100% test_fs_funcs.py 14 0 100% test_load_plugins.py 9 0 100% test_main.py 135 0 100% test_output.py 73 0 100% test_process_output.py 11 0 100% test_snmp.py 15 0 100% test_xapidb_filter.py 21 0 100% TOTAL 506 0 100%
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
32 | 0 :zzz: | 0 :x: | 0 :fire: | 0.980s :stopwatch: |
Totals | |
---|---|
Change from base Build 8419300538: | 0.1% |
Covered Lines: | 677 |
Relevant Lines: | 712 |
This new test confirms that
log_exceptions()
(added with #94) logs exception messages to the collected xen-bugtool.log file and to stdout.This PR also has a 2nd commit with a note on how to best skip a pre-commit check for rebasing the PR branch: