forked from cleveragents/cleveragents-core
41 lines
1.6 KiB
Gherkin
41 lines
1.6 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
|
|
|
|
# Create error handling (config-only)
|
|
Scenario: Create action surfaces validation errors from the service
|
|
Given a valid action config YAML file
|
|
When I run action CLI create with validation error from service
|
|
Then the action CLI should abort with validation error
|
|
|
|
Scenario: Create action surfaces service errors from the lifecycle service
|
|
Given a valid action config YAML file
|
|
When I run action CLI create with service error from config
|
|
Then the action CLI should abort with service error
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# 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
|