From 780a33f65704b98b8e112d69ee448d05d29c3b44 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 12 Aug 2025 16:48:01 -0500 Subject: [PATCH] test: add coverage job to bacon.toml, coverage profile for nextest --- .config/nextest.toml | 3 +++ bacon.toml | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/.config/nextest.toml b/.config/nextest.toml index 18ee230..b988946 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,2 +1,5 @@ [profile.default] fail-fast = false + +[profile.coverage] +status-level = "none" diff --git a/bacon.toml b/bacon.toml index 50d1978..133329e 100644 --- a/bacon.toml +++ b/bacon.toml @@ -34,6 +34,24 @@ command = [ need_stdout = true analyzer = "nextest" +[jobs.coverage] +command = [ + "cargo", "llvm-cov", "--profile", "coverage", "--color", "always", "--no-fail-fast", "nextest", "--no-capture", "--summary-only", "--" +] +need_stdout = true +ignored_lines = [ + "info:", + "\\s+Compiling", + "test result: ok", + "^\\s*$", + "running \\d+ test", + "Nextest run ID", + "[─]+", + "test.+ok", + "PASS|START", + "Starting \\d+ test" +] + [jobs.doc] command = ["cargo", "doc", "--no-deps"] need_stdout = false @@ -59,3 +77,4 @@ c = "job:clippy" alt-c = "job:check" ctrl-alt-c = "job:check-all" shift-c = "job:clippy-all" +f = "job:coverage"