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
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
35 lines
1.0 KiB
Gherkin
35 lines
1.0 KiB
Gherkin
@cli
|
|
Feature: CLI Command Processing
|
|
|
|
Scenario: Convert integer exit codes
|
|
When I convert exit code 0
|
|
Then the result should be 0
|
|
When I convert exit code 1
|
|
Then the result should be 1
|
|
When I convert exit code -1
|
|
Then the result should be -1
|
|
|
|
Scenario: Convert None exit code
|
|
When I convert exit code None
|
|
Then the result should be 0
|
|
|
|
Scenario: Convert Click Exit exception
|
|
When I convert a Click Exit exception with code 2
|
|
Then the result should be 2
|
|
|
|
Scenario: Handle invalid command
|
|
When I run the CleverAgents CLI with "invalid-command-xyz"
|
|
Then the CLI command should fail
|
|
And the error should contain "invalid"
|
|
|
|
Scenario: Main function handles arguments
|
|
When I call main with arguments "--version"
|
|
Then main should process the version flag
|
|
|
|
Scenario: Main function handles no arguments
|
|
When I call main with no arguments
|
|
Then main should display help
|
|
|
|
Scenario: Main function handles SystemExit
|
|
When I call main and CLI raises SystemExit 1
|
|
Then main should return 1 |