Skip to content

test: requirement_agent.py カバレッジ向上(15テスト追加)#89

Open
fukukei23 wants to merge 2 commits into
mainfrom
test/issue-88-requirement-agent-coverage
Open

test: requirement_agent.py カバレッジ向上(15テスト追加)#89
fukukei23 wants to merge 2 commits into
mainfrom
test/issue-88-requirement-agent-coverage

Conversation

@fukukei23
Copy link
Copy Markdown
Owner

Summary

  • requirement_agent.py のカバレッジ 82.26% → 向上
  • 15テスト追加: フォールバックパス、TextLocalization、StateMachine、headlessモード

追加テスト

カテゴリ テスト数 対象
analyze_requirement 3 空入力、JSON失敗、正常JSON
generate_final_spec 2 正常、ユーザーなし
TextLocalization 4 ja/en/未知キー/未知言語
StateMachine 2 初期化/トランジション
headlessモード 2 use_ui=False/Gradio未インストール
その他 2 初期化/set_initial_requirement

Test plan

  • python -m pytest tests/ -q → 5457 passed, 0 failed (+15テスト)

Closes #88

🤖 Generated with Claude Code

Codex CLI and others added 2 commits April 27, 2026 14:29
リファクタリング(1be87e1, 005726b)でモジュールが移動されたが、
テストファイルとソースファイル内のインポートパスが更新されていなかった。

主な修正:
- agents → analyzer/config/guard/services/utils への移動に対応
- gradio_app/modules/ui/ventures → archive/ への移動に対応
- mock.patch()内のパスも含め全て更新

テスト結果: 5441 passed, 0 failed(修正前: 48 collection errors)

Closes #84

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
未カバー行のテスト15件を追加:
- analyze_requirement の空入力フォールバック/JSON パース失敗
- generate_final_spec の正常系/エッジケース
- TextLocalization の多言語/未知キー/未知言語
- StateMachine の初期化/トランジション
- headless モード/Gradio未インストール時のフォールバック

テスト結果: 5457 passed, 0 failed(+15テスト、回帰なし)

Closes #88

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@fukukei23 fukukei23 force-pushed the test/issue-88-requirement-agent-coverage branch from aae1f8a to f411c5c Compare May 7, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: requirement_agent.py カバレッジ向上(82.26%→90%+)

1 participant