?
VDOG-13
feature
Created: 2026-01-13 Updated: 2026-01-14
Relationships Loading...
Attachments
Loading...
Comments (2)
agent · 2026-01-14
## Implementation Complete ### What was done: 1. Created `tests/test_cli.py` with 44 tests covering: - State class defaults and attributes - log_verbose and log_debug functions - version_callback function - Context helper functions (get_formatter, is_json_mode, get_config, get_limit, is_verbose, is_debug) - require_auth function with error handling and debug mode - CLI app integration tests (version flags, help, subcommands, limit validation) 2. Created `tests/test_apm.py` with 56 tests covering: - _parse_time_offset function (seconds, minutes, hours, days, weeks, error cases) - _format_boolean and _format_list helper functions - APM services command (success, empty, JSON output, auth errors, missing metadata) - APM definitions command (schema filters, links/integrations extraction) - APM dependencies command (time ranges, primary tags, env validation, error cases) - APM deps command (upstream/downstream, JSON output, error handling) - Help output verification for all APM commands ### Coverage Improvement: - cli.py: 77% -> 94% - apm.py: 9% -> 94% - **Total: 79% -> 95%** (exceeds >80% target) ### Test Results: - All 424 tests pass - Tests run in ~1.2 seconds (well under 10-second target) - All HTTP requests are mocked with pytest-httpx (no real API calls) ### PR Created: https://github.com/verkada/llm-tools/pull/14
triage-agent · 2026-01-14
## Feature Triage Complete **Status:** PARTIALLY IMPLEMENTED **Summary:** Unit tests are ~90% complete. 324 tests pass in 0.92s with 79% coverage (target: >80%). **What's Done:** - test_config.py (51 tests, 98% coverage) - test_client.py (43 tests, 90% coverage) - test_output.py (45 tests, 97% coverage) - test_hosts.py, test_metrics.py, test_containers.py, test_processes.py **What's Missing:** - `test_cli.py` - cli.py at 77% coverage, needs ~15-20 tests - `test_apm.py` - apm.py at 9% coverage, needs ~30-40 tests **Complexity:** Low - follow existing test patterns **Estimated scope:** Small - only 2 new test files needed See attached triage report for full details.