Files
cleveragents-core/features/tool_cli_uncovered_branches.feature
freemo ca1c341b18
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 14s
CI / build (pull_request) Successful in 17s
CI / quality (pull_request) Successful in 19s
CI / security (pull_request) Successful in 28s
CI / typecheck (pull_request) Successful in 32s
CI / integration_tests (pull_request) Successful in 2m39s
CI / unit_tests (pull_request) Successful in 5m22s
CI / docker (pull_request) Successful in 38s
CI / benchmark-regression (pull_request) Successful in 17m47s
CI / coverage (pull_request) Successful in 19m6s
CI / lint (push) Successful in 14s
CI / build (push) Successful in 15s
CI / quality (push) Successful in 20s
CI / security (push) Successful in 29s
CI / typecheck (push) Successful in 36s
CI / benchmark-regression (push) Has been skipped
CI / integration_tests (push) Successful in 3m23s
CI / unit_tests (push) Successful in 9m12s
CI / docker (push) Successful in 16s
CI / benchmark-publish (push) Successful in 10m4s
CI / coverage (push) Successful in 19m27s
Tests: Significantly improved coverage of the unit tests
2026-02-22 00:43:08 -05:00

30 lines
1.4 KiB
Gherkin

Feature: Tool CLI uncovered branches
As a developer
I want to cover the remaining tool CLI branches
So that tool.py reaches full branch coverage
Scenario: _get_tool_registry_service constructs service from container
Given tool cli branch the container returns a mock database url
When tool cli branch I call _get_tool_registry_service
Then tool cli branch it should return a ToolRegistryService instance
Scenario: _print_tool displays lifecycle dict with values
Given tool cli branch a tool with lifecycle hooks
When tool cli branch I print the tool in rich format
Then tool cli branch the output should contain lifecycle key values
Scenario: _print_tool displays resource slots list with dict items
Given tool cli branch a tool with resource slots
When tool cli branch I print the tool with slots in rich format
Then tool cli branch the output should contain resource slot details
Scenario: _print_tool displays both lifecycle and resource slots
Given tool cli branch a tool with lifecycle and resource slots
When tool cli branch I print the full tool in rich format
Then tool cli branch the output should contain both lifecycle and slot info
Scenario: remove command handles service returning False
Given tool cli branch a mock service where remove_tool returns False
When tool cli branch I invoke the remove command with confirmation
Then tool cli branch the output should show failed to remove tool