From 2959b9f9c1006a42dba4ed6316275c9538f87a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 15 Dec 2022 14:45:31 +0100 Subject: shellrc.d/dev: add mcoverage and move coverage enable from mtest there --- shellrc.d/dev | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shellrc.d/dev b/shellrc.d/dev index 9af8088..1c54322 100644 --- a/shellrc.d/dev +++ b/shellrc.d/dev @@ -27,9 +27,16 @@ mbuild() { } mtest() { + _meson_setup + meson test -C build "$@" +} + +mcoverage() { _meson_setup meson configure build -Db_coverage=true meson test -C build "$@" + ninja -C build coverage-html + xdg-open build/meson-logs/coveragereport/index.html } mdist() { -- cgit v1.2.3