Smoke tests landed in v0.1.38 (tests/cli_smoke_test.rs) — they catch arg-parsing regressions but don't exercise execute() paths.
Next layer: integration tests that boot otelite against a temp SQLite DB seeded with fixtures, run a real command, and assert output. Pattern matches assert_cmd examples already in dev-deps.
Lifts commands/usage.rs from 8% coverage and commands/service.rs from 0%.
Acceptance criteria: at least one integration test per command (logs/traces/metrics/usage); covers the happy path and one error path each.
Filed from review on 2026-05-15.
Smoke tests landed in v0.1.38 (
tests/cli_smoke_test.rs) — they catch arg-parsing regressions but don't exerciseexecute()paths.Next layer: integration tests that boot
oteliteagainst a temp SQLite DB seeded with fixtures, run a real command, and assert output. Pattern matchesassert_cmdexamples already in dev-deps.Lifts
commands/usage.rsfrom 8% coverage andcommands/service.rsfrom 0%.Acceptance criteria: at least one integration test per command (logs/traces/metrics/usage); covers the happy path and one error path each.
Filed from review on 2026-05-15.