xenserver / status-report

Program that gathers data for xenserver host diagnostics
GNU Lesser General Public License v2.1
1 stars 9 forks source link

CI: Add new test to cover lines handling unkown command line options #50

Closed bernhardkaindl closed 8 months ago

bernhardkaindl commented 8 months ago

CI: Add new test to cover lines handling unknown command line options

codecov-commenter commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5f8bafd) 84.90% compared to head (c781292) 85.27%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #50 +/- ## ========================================== + Coverage 84.90% 85.27% +0.36% ========================================== Files 15 15 Lines 1928 1942 +14 ========================================== + Hits 1637 1656 +19 + Misses 291 286 -5 ``` | [Flag](https://app.codecov.io/gh/xenserver/status-report/pull/50/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=xenserver) | Coverage Δ | | |---|---|---| | [python2.7](https://app.codecov.io/gh/xenserver/status-report/pull/50/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=xenserver) | `83.78% <100.00%> (+0.37%)` | :arrow_up: | | [python3.10.13](https://app.codecov.io/gh/xenserver/status-report/pull/50/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=xenserver) | `84.15% <100.00%> (+0.40%)` | :arrow_up: | | [unittest](https://app.codecov.io/gh/xenserver/status-report/pull/50/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=xenserver) | `84.15% <100.00%> (+0.40%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=xenserver#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 8 months ago

Coverage

Pytest Code coverage comment for Python 2.7
FileStmtsMissCoverMissing
xen-bugtool152329280%77–79, 84, 95, 100–101, 410, 486, 491, 511, 517, 540, 602, 620, 692–693, 707, 711, 726–727, 733–734, 739, 749, 754, 757–760, 766, 771–773, 776–777, 780–781, 784, 825–827, 962–976, 978–987, 1048, 1056, 1173, 1175, 1179–1180, 1204, 1222, 1225–1227, 1230–1234, 1237–1238, 1242–1244, 1250–1256, 1259–1263, 1265–1281, 1284–1292, 1295–1296, 1298, 1300–1301, 1303–1311, 1314, 1316–1319, 1321, 1323–1324, 1358, 1386, 1401, 1409–1410, 1414–1416, 1418, 1425, 1427–1431, 1433, 1463–1465, 1467–1472, 1475–1479, 1483–1484, 1486, 1503–1504, 1506, 1508–1509, 1511–1513, 1515–1522, 1524–1529, 1533–1534, 1536, 1538, 1540, 1556–1557, 1559, 1561–1563, 1566–1567, 1569, 1571–1573, 1576–1577, 1579, 1581–1584, 1587–1597, 1600–1604, 1613, 1626, 1636, 1640, 1675–1677, 1750, 1785, 1824, 1884, 1927, 1930–1931, 1969, 1976, 1982, 1984–1987, 1990–2000, 2091–2093, 2096–2098, 2110, 2129–2131, 2171–2175, 2187, 2205
integration
   __init__.py00100% 
   conftest.py180100% 
   namespace_container.py35197%85
   test_system_load.py180100% 
   test_xenserverconfig.py130100% 
   utils.py61493%18, 31, 66, 104
mocks/xen
   __init__.py00100% 
mocks/xen/lowlevel
   __init__.py00100% 
mocks/xen/lowlevel/xc
   __init__.py50100% 
unit
   __init_\.py00100% 
   conftest.py28967%34, 36–40, 42–44
   test_dir_list.py110100% 
   test_fs_funcs.py100100% 
   test_load_plugins.py50100% 
   test_main.py115893%186, 263–265, 267–270
   test_output.py640100% 
   test_process_output.py110100% 
   test_xapidb_filter.py190100% 
TOTAL193631483% 

Tests Skipped Failures Errors Time
20 1 :zzz: 0 :x: 0 :fire: 2.205s :stopwatch:
github-actions[bot] commented 8 months ago

Coverage

Python3 coverage comment from https://github.com/marketplace/actions/pytest-coverage-comment
FileStmtsMissCoverMissing
__init__.py00100% 
conftest.py320100% 
test_dir_list.py110100% 
test_fs_funcs.py100100% 
test_load_plugins.py50100% 
test_main.py1170100% 
test_output.py640100% 
test_process_output.py110100% 
test_xapidb_filter.py190100% 
xen-bugtool152328481%95, 100–101, 410, 491, 511, 517, 540, 602, 620, 692–693, 707, 711, 726–727, 733–734, 739, 749, 754, 766, 771–773, 776–777, 780–781, 784, 825–827, 846, 962–976, 978–987, 1048, 1056, 1173, 1175, 1179–1180, 1204, 1222, 1225–1227, 1230–1234, 1237–1238, 1242–1244, 1250–1256, 1259–1263, 1265–1281, 1284–1292, 1295–1296, 1298, 1300–1301, 1303–1311, 1314, 1316–1319, 1321, 1323–1324, 1358, 1386, 1401, 1409–1410, 1414–1416, 1418, 1425, 1427–1431, 1433, 1463–1465, 1467–1472, 1475–1479, 1483–1484, 1486, 1503–1504, 1506, 1508–1509, 1511–1513, 1515–1522, 1524–1529, 1533–1534, 1536, 1538, 1540, 1556–1557, 1559, 1561–1563, 1566–1567, 1569, 1571–1573, 1576–1577, 1579, 1581–1584, 1587–1597, 1600–1604, 1614, 1626, 1636, 1640, 1675–1677, 1785, 1809, 1824, 1884, 1927, 1930–1931, 1969, 1976, 1982, 1984–1987, 1990–2000, 2091–2093, 2096–2098, 2110, 2129–2131, 2171–2175, 2187, 2205
TOTAL179228484% 

Tests Skipped Failures Errors Time
16 0 :zzz: 0 :x: 0 :fire: 1.085s :stopwatch: