Files
cleveragents-core/features/action_cli_uncovered_lines.feature
T

57 lines
2.3 KiB
Gherkin

Feature: Action CLI uncovered lines coverage
As a developer
I want to exercise action CLI error paths
So that action.py uncovered lines are executed
Background:
Given an action CLI runner with mocks
And a mocked plan lifecycle service
# Lines 217-222: create error handling
Scenario: Create action surfaces validation errors from the service
When I run action CLI create with validation error
Then the action CLI should abort with validation error
Scenario: Create action surfaces service errors from the lifecycle service
When I run action CLI create with service error
Then the action CLI should abort with service error
# Lines 265-272: list invalid state handling
Scenario: List actions rejects unsupported state filter
When I run action CLI list with invalid state "unsupported"
Then the action CLI should abort with invalid state
# Lines 302-304: list error handling
Scenario: List actions surfaces lifecycle service errors
When I run action CLI list with service error
Then the action CLI should abort with service error
# Lines 333-335: show error handling
Scenario: Show action surfaces lifecycle service errors
When I run action CLI show with service error
Then the action CLI should abort with service error
# Lines 355-356: available name fallback
Scenario: Available command falls back to namespaced name lookup
Given there is a mocked draft action
When I run action CLI available with the action name
Then the action CLI should make action available
And the action CLI should resolve action by name
# Lines 369-370: available not found handling
Scenario: Available command reports missing actions
When I run action CLI available with unknown ID
Then the action CLI command should abort for missing action
# Lines 374-376: available service error handling
Scenario: Available command surfaces lifecycle service errors
Given there is a mocked draft action
When I run action CLI available with service error
Then the action CLI should abort with service error
# Lines 406-408: archive service error handling
Scenario: Archive command surfaces lifecycle service errors
Given there is a mocked available action
When I run action CLI archive with service error
Then the action CLI should abort with service error