Files
cleveragents-core/features/session_cli_uncovered_branches.feature
T
HAL9000 195fbac109
CI / lint (pull_request) Successful in 40s
CI / helm (pull_request) Successful in 38s
CI / build (pull_request) Successful in 48s
CI / quality (pull_request) Successful in 1m0s
CI / typecheck (pull_request) Successful in 1m29s
CI / security (pull_request) Successful in 1m28s
CI / push-validation (pull_request) Successful in 20s
CI / unit_tests (pull_request) Successful in 5m8s
CI / docker (pull_request) Successful in 1m27s
CI / integration_tests (pull_request) Successful in 8m39s
CI / coverage (pull_request) Successful in 11m1s
CI / status-check (pull_request) Successful in 3s
fix: add required @a2a, @session, @cli tags to BDD feature files
Add domain-scenario Gherkin tags to all A2A, session, and CLI feature
files (30 files) so tests can be filtered individually via behave.

- 8 A2A feature files: @a2a tag
- 7 session feature files: @session tag
- 15 CLI feature files: @cli tag

ISSUES CLOSED: #9124
2026-06-02 15:41:06 -04:00

58 lines
3.1 KiB
Gherkin

@session
Feature: Session CLI uncovered branches
As a developer
I want full branch coverage for session CLI commands
So that edge cases are tested
Scenario: session cli branch - _get_session_service constructs service when _service is None
Given session cli branch the module-level _service is None
When session cli branch I call _get_session_service with mocked container
Then session cli branch a PersistentSessionService is returned
Scenario: session cli branch - _reset_session_service sets _service to None
Given session cli branch the module-level _service holds a mock
When session cli branch I call _reset_session_service
Then session cli branch the module-level _service is None again
Scenario: session cli branch - create command catches SessionNotFoundError
Given session cli branch a mock session service that raises SessionNotFoundError on create
When session cli branch I invoke the create command
Then session cli branch the exit code is 1
And session cli branch the output contains "Error:"
Scenario: session cli branch - show command with no messages
Given session cli branch a mock session service returning a session with no messages
When session cli branch I invoke the show command for that session
Then session cli branch the exit code is 0
And session cli branch the output contains "Session Summary"
And session cli branch the output does not contain "Recent Messages"
Scenario: session cli branch - show command with linked plan ids
Given session cli branch a mock session service returning a session with linked plans
When session cli branch I invoke the show command for the linked-plans session
Then session cli branch the exit code is 0
And session cli branch the output contains "Linked Plans"
Scenario: session cli branch - show command with long message content truncated
Given session cli branch a mock session service returning a session with a long message
When session cli branch I invoke the show command for the long-message session
Then session cli branch the exit code is 0
And session cli branch the output contains "Recent Messages"
Scenario: session cli branch - delete command aborted via confirmation prompt
Given session cli branch a mock session service for delete
When session cli branch I invoke the delete command without --yes and answer no
Then session cli branch the delete is aborted
Scenario: session cli branch - export command catches SessionExportError
Given session cli branch a mock session service that raises SessionExportError on export
When session cli branch I invoke the export command
Then session cli branch the export exit code is 1
And session cli branch the export output contains "Export error:"
Scenario: session cli branch - tell command with stream=True
Given session cli branch a mock session service for tell
When session cli branch I invoke the tell command with --stream
Then session cli branch the exit code is 0
And session cli branch the streamed output contains the assistant response