test(cli): TDD failing tests for init --yes non-interactive (bug #783) #1049

Merged
hurui200320 merged 2 commits from tdd/m3-init-yes-no-input into master 2026-03-19 06:31:20 +00:00

2 Commits

Author SHA1 Message Date
hurui200320 fcfbb6a096 Merge branch 'master' into tdd/m3-init-yes-no-input
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 17s
CI / build (pull_request) Successful in 17s
CI / quality (pull_request) Successful in 29s
CI / security (pull_request) Successful in 57s
CI / typecheck (pull_request) Successful in 1m2s
CI / unit_tests (pull_request) Successful in 3m33s
CI / integration_tests (pull_request) Successful in 3m40s
CI / e2e_tests (pull_request) Successful in 3m47s
CI / docker (pull_request) Successful in 1m8s
CI / coverage (pull_request) Successful in 6m47s
CI / benchmark-regression (pull_request) Successful in 39m55s
2026-03-19 06:23:26 +00:00
hurui200320 c35e372a9c test(cli): TDD failing tests for init --yes non-interactive (bug #783)
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 18s
CI / build (pull_request) Successful in 18s
CI / quality (pull_request) Successful in 29s
CI / typecheck (pull_request) Successful in 43s
CI / security (pull_request) Successful in 45s
CI / unit_tests (pull_request) Successful in 2m58s
CI / integration_tests (pull_request) Successful in 3m33s
CI / e2e_tests (pull_request) Successful in 3m53s
CI / docker (pull_request) Successful in 55s
CI / coverage (pull_request) Successful in 7m24s
CI / benchmark-regression (pull_request) Successful in 38m4s
Added TDD bug-capture tests proving that `agents init --yes` fails to
bypass the migration approval prompt in a TTY environment (bug #783).

Behave scenarios in features/tdd_init_yes_no_input.feature and Robot
Framework tests in robot/tdd_init_yes_no_input.robot exercise the real
`init --yes` code path with sys.stdin.isatty() mocked to True and no
stdin input available.  With the bug present, the migration runner
calls typer.confirm() despite --yes, and the empty stdin causes the
migration to be declined (MigrationNotApprovedError).

All tests are tagged @tdd_expected_fail @tdd_bug @tdd_bug_783 so CI
passes while the bug remains unfixed.  The bug fix developer will
remove @tdd_expected_fail when the fix is implemented.

ISSUES CLOSED: #842
2026-03-18 10:16:56 +00:00