Skip to content

Commit

Permalink
meson: emit the coverage result to XML
Browse files Browse the repository at this point in the history
The TIOBE analyzer will ingest it to process coverage data.
  • Loading branch information
daniloegea committed Aug 7, 2024
1 parent 427a709 commit 4826444
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ if get_option('testing')
'meson-logs', 'coveragereport-py'), '--omit=/usr/*'],
priority: -95, # run before 'coverage-py'
is_parallel: false)
test('coverage-py-output-xml',
pycoverage,
args: ['xml', '-o', join_paths(meson.current_build_dir(),
'meson-logs', 'coverage-py.xml'), '--omit=/usr/*'],
priority: -96, # run before 'coverage-py'
is_parallel: false)
test('coverage-py',
pycoverage,
args: ['report', '--omit=/usr/*', '--show-missing', '--fail-under=100'],
Expand Down

0 comments on commit 4826444

Please sign in to comment.