ca1c341b18
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 14s
CI / build (pull_request) Successful in 17s
CI / quality (pull_request) Successful in 19s
CI / security (pull_request) Successful in 28s
CI / typecheck (pull_request) Successful in 32s
CI / integration_tests (pull_request) Successful in 2m39s
CI / unit_tests (pull_request) Successful in 5m22s
CI / docker (pull_request) Successful in 38s
CI / benchmark-regression (pull_request) Successful in 17m47s
CI / coverage (pull_request) Successful in 19m6s
CI / lint (push) Successful in 14s
CI / build (push) Successful in 15s
CI / quality (push) Successful in 20s
CI / security (push) Successful in 29s
CI / typecheck (push) Successful in 36s
CI / benchmark-regression (push) Has been skipped
CI / integration_tests (push) Successful in 3m23s
CI / unit_tests (push) Successful in 9m12s
CI / docker (push) Successful in 16s
CI / benchmark-publish (push) Successful in 10m4s
CI / coverage (push) Successful in 19m27s
49 lines
2.5 KiB
Gherkin
49 lines
2.5 KiB
Gherkin
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
|