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
63 lines
2.8 KiB
Gherkin
63 lines
2.8 KiB
Gherkin
@cli
|
|
# These tests target bug #522 and are expected to fail until the fix is applied.
|
|
#
|
|
# NOTE FOR FIX AUTHOR (#522):
|
|
# Scenarios 1-4 will fail for TWO independent reasons:
|
|
# (a) The --yes / -y flag is not yet implemented (NoSuchOption).
|
|
# (b) The current init_command output format (project.py) does not match
|
|
# the spec-defined output at docs/specification.md:1381-1402.
|
|
# The fix must address both: add the --yes flag AND remodel the output to
|
|
# match the spec (Data Dir, Config, Database, Directories fields with the
|
|
# "Initialized (non-interactive)" status message).
|
|
Feature: CLI init --yes flag for non-interactive initialization
|
|
As a developer using CleverAgents in CI or scripts
|
|
I want to run "agents init --yes" for non-interactive initialization
|
|
So that I can skip interactive prompts and use sensible defaults
|
|
|
|
@tdd_issue @tdd_issue_522 @tdd_issue_4178
|
|
|
|
Scenario: agents init --yes completes without error
|
|
Given I have a temporary project directory for init
|
|
When I run agents init with the --yes flag
|
|
Then the init command should exit with code 0
|
|
And the project service initialize_project should have been called
|
|
|
|
@tdd_issue @tdd_issue_522 @tdd_issue_4178
|
|
|
|
Scenario: --yes suppresses interactive prompts
|
|
Given I have a temporary project directory for init
|
|
When I run agents init with the --yes flag
|
|
Then the init command should exit with code 0
|
|
And the init output should contain "Initialized (non-interactive)"
|
|
And no interactive prompt should have been presented
|
|
|
|
@tdd_issue @tdd_issue_522 @tdd_issue_4178
|
|
|
|
Scenario: -y short-form alias completes without error
|
|
Given I have a temporary project directory for init
|
|
When I run agents init with the -y flag
|
|
Then the init command should exit with code 0
|
|
And the init output should contain "Initialized (non-interactive)"
|
|
And the project service initialize_project should have been called
|
|
|
|
@tdd_issue @tdd_issue_522 @tdd_issue_4178
|
|
|
|
Scenario: Output includes expected initialization summary
|
|
Given I have a temporary project directory for init
|
|
When I run agents init with the --yes flag
|
|
Then the init command should exit with code 0
|
|
And the init output should contain "Data Dir:"
|
|
And the init output should contain "Config:"
|
|
And the init output should contain "Database:"
|
|
And the init output should contain "Directories:"
|
|
And the init output should contain "logs, cache, sessions, contexts"
|
|
And the init output should contain "Initialized"
|
|
|
|
@tdd_issue @tdd_issue_522 @tdd_issue_4178
|
|
|
|
Scenario: Interactive mode without --yes presents a prompt
|
|
Given I have a temporary project directory for init
|
|
When I run agents init without the --yes flag
|
|
Then the init command should exit with code 0
|
|
And the init output should indicate interactive mode
|