Skip to content

リファクタリング: テスト構造の整理と分割 - #11

Merged
soukouki merged 1 commit into
mainfrom
refactor/test-restructure
May 18, 2026
Merged

soukouki merged 1 commit into
mainfrom
refactor/test-restructure

Conversation

@soukouki

Copy link
Copy Markdown
Owner

Summary

  • test_mcp.rb を test_vault.rb と test_integration.rb に分割
  • テストメソッドをシナリオ単位に整理(39→18)
  • 正常系と異常系のテストを分離
  • 同じアクションの結果を複数のアサーションで検証するパターンに統一
  • カバレッジ計測用ユーティリティを coverage_injector.rb に改名
  • テスト共通のセットアップを shared_setup.rb に分離
  • Rakefile にカバレッジデータのリセットロジックを追加

Test Plan

  • ユニットテストがパスする
  • 結合テストがパスする

- test_mcp.rb を test_vault.rb と test_integration.rb に分割
- テストメソッドをシナリオ単位に整理(39→18)
- 正常系と異常系のテストを分離
- 同じアクションの結果を複数のアサーションで検証するパターンに統一
- カバレッジ計測用ユーティリティを coverage_injector.rb に改名
- テスト共通のセットアップを shared_setup.rb に分離
- Rakefile にカバレッジデータのリセットロジックを追加
@soukouki
soukouki merged commit e7b0855 into main May 18, 2026
1 check passed
@soukouki
soukouki deleted the refactor/test-restructure branch May 18, 2026 08:52
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.

1 participant