Files
cleveragents-core/features/cli_coverage.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

50 lines
1.7 KiB
Gherkin

@cli
Feature: CLI Main Coverage
As a developer
I want to ensure the CLI main module is properly tested
So that I have confidence in the application's entry points
Scenario: CLI commands execute successfully
When I run shell command "cleveragents --version"
Then the shell command should succeed
And the shell output should contain "1.0.0"
Scenario: CLI help displays correctly
When I call the main function directly with "--help"
Then it should return 0
Scenario: CLI info command runs
When I call the main function directly with "info"
Then it should return 0
Scenario: CLI diagnostics command runs
When I call the main function directly with "diagnostics"
Then it should return 0
Scenario: Invalid command returns error
When I call the main function directly with "invalid-command"
Then it should return 2
Scenario: Direct main function call with no args
When I call the main function directly with no args
Then it should return 0
Scenario: Direct main function call with version
When I call the main function directly with "--version"
Then it should return 0
Scenario: Direct main function call with help
When I call the main function directly with "--help"
Then it should return 0
Scenario: Direct main function call with bad command
When I call the main function directly with "bad-command"
Then it should return 2
Scenario: CLI handles keyboard interrupt
When I run a command that gets interrupted
Then it should handle the KeyboardInterrupt gracefully
Scenario: CLI handles system exit
When I run a command that calls sys.exit(1)
Then it should propagate the exit code correctly