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
50 lines
2.5 KiB
Gherkin
50 lines
2.5 KiB
Gherkin
@cli
|
|
Feature: CLI main.py uncovered branches
|
|
As a developer
|
|
I want to cover the missed branches in cleveragents.cli.main
|
|
So that code coverage gaps on lines 225-228, 269-272, 289-292, 317-323, 372-379, 626-627 are closed
|
|
|
|
Scenario: show_secrets_callback with True enables secret display
|
|
When cli main branch show_secrets_callback is invoked with True
|
|
Then cli main branch set_show_secrets should have been called with True
|
|
|
|
Scenario: show_secrets_callback with False does nothing
|
|
When cli main branch show_secrets_callback is invoked with False
|
|
Then cli main branch set_show_secrets should not have been called
|
|
|
|
Scenario: version command with plain format uses format_output
|
|
When cli main branch version command is invoked with format "plain"
|
|
Then cli main branch format_output should have been called for version with fmt "plain"
|
|
|
|
Scenario: version command with json format uses format_output
|
|
When cli main branch version command is invoked with format "json"
|
|
Then cli main branch format_output should have been called for version with fmt "json"
|
|
|
|
Scenario: info command with plain format uses format_output
|
|
When cli main branch info command is invoked with format "plain"
|
|
Then cli main branch format_output should have been called for info with fmt "plain"
|
|
|
|
Scenario: info command with json format uses format_output
|
|
When cli main branch info command is invoked with format "json"
|
|
Then cli main branch format_output should have been called for info with fmt "json"
|
|
|
|
Scenario: diagnostics command with plain format uses format_output
|
|
When cli main branch diagnostics command is invoked with format "plain"
|
|
Then cli main branch format_output should have been called for diagnostics with fmt "plain"
|
|
|
|
Scenario: diagnostics with check flag and errors exits with code 1
|
|
When cli main branch diagnostics command is invoked with check and errors present
|
|
Then cli main branch diagnostics should exit with code 1
|
|
|
|
Scenario: diagnostics with check flag but no errors exits normally
|
|
When cli main branch diagnostics command is invoked with check but no errors
|
|
Then cli main branch diagnostics should exit with code 0
|
|
|
|
Scenario: init command generic Exception prints unexpected error
|
|
When cli main branch init command raises a generic Exception
|
|
Then cli main branch init output should contain "Unexpected error"
|
|
|
|
Scenario: __name__ == __main__ block calls main
|
|
When cli main branch the module is executed as __main__
|
|
Then cli main branch sys.exit should have been called with main result
|