forked from cleveragents/cleveragents-core
1878998b7a
Rename the TDD tag system from tdd_bug/tdd_bug_<N> to tdd_issue/tdd_issue_<N> across the entire codebase. The tdd_expected_fail tag is unchanged. The TDD expected-failure workflow is not limited to bug fixes — it applies equally to any issue type (features, tasks, refactors). The _bug suffix was misleading and narrowed the perceived scope. The new _issue suffix accurately reflects that the TDD tagging system applies to any Forgejo issue. Changes span 92 files: - features/environment.py: validate_tdd_tags(), should_invert_result(), and apply_tdd_inversion() updated — regex, variables, error messages - robot/tdd_expected_fail_listener.py: _validate_tdd_tags(), _should_invert_result(), start_test(), end_test() updated consistently - 33 Behave .feature files: all @tdd_bug/@tdd_bug_<N> tags renamed - 29 Robot .robot files: all tdd_bug/tdd_bug_<N> tags renamed - 3 Robot fixture files renamed (tdd_bug_alone, tdd_missing_tdd_bug, tdd_expected_fail_missing_bug_n) with content and references updated - Tag validation tests and helpers updated (function names, command dispatch keys, output strings, fixture references) - CONTRIBUTING.md: section renamed from 'TDD Bug Test Tags' to 'TDD Issue Test Tags', all tag references and examples updated - noxfile.py: comment references updated - Step definition files, mock helpers, and benchmark files: docstring references updated ISSUES CLOSED: #965
57 lines
2.7 KiB
Gherkin
57 lines
2.7 KiB
Gherkin
# 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|