diff --git a/coverage/gcovr.cfg b/coverage/gcovr.cfg new file mode 100644 index 000000000..4ec590674 --- /dev/null +++ b/coverage/gcovr.cfg @@ -0,0 +1,5 @@ +exclude-branches-by-pattern = \s*(?:weston_assert_) +html-nested = yes +html-theme = github.green +html-title = Weston test suite coverage +print-summary = yes diff --git a/coverage/meson.build b/coverage/meson.build index 1a537a66a..99b64d456 100644 --- a/coverage/meson.build +++ b/coverage/meson.build @@ -18,12 +18,9 @@ run_target( command: [ prog_gcovr, '--root', '@SOURCE_ROOT@', + '--config', files('gcovr.cfg'), '--cobertura', meson.current_build_dir() / 'cobertura.xml', '--html', meson.current_build_dir() / 'index.html', - '--html-nested', - '--html-theme', 'github.green', - '--html-title', 'Weston test suite coverage', - '--print-summary', meson.project_build_root(), ], )