Skip to content

test: add CLI integration tests against ephemeral SQLite (assert_cmd) #82

Description

@planetf1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliotelite-cli cratepriority:p3Lower priority — nice to havetype:testTest coverage and quality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions