quarkus-tdd
JUnit 5、Mockito、REST Assured、Camelテスト、JaCoCoを使用したQuarkus 3.xのテスト駆動開発。機能追加、バグ修正、またはイベント駆動サービスのリファクタリング時に使用。
Original · translation is not supported for this source languageTarget: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original Japanese text
Topics in the source
- Quarkus TDD Workflow
- When to Use
- Workflow
- Unit Tests with @Nested Organization
- Key Testing Patterns
- Testing Camel Routes
- Testing Event Services
- Testing CompletableFuture
80%以上のカバレッジ(ユニット+統合)を備えたQuarkus 3.xサービスのTDD指導。Apache Camelを使用したイベント駆動アーキテクチャに最適化。 新機能またはRESTエンドポイント バグ修正またはリファクタリング データアクセスロジック、セキュリティルール、またはリアクティブストリーム追加 Apache Camelルートとイベントハンドラーテスト RabbitMQを使用したイベント駆動サービステスト 条件フローロジック検証 CompletableFuture非同期操作検証 LogContextプロパゲーション テスト 1. テストを先に書く(失敗するはず) 2. 最小限のコードで合格実装 3. テストが緑の状態でリファクタリング 4. JaCoCoでカバレッジ実装(80%以上を目標) 包括的で読みやすいテストのため、以下の構造化されたアプローチに従います: 1. @Nested クラス: テストするメソッド別にテストをグループ化 2. @DisplayName: テストレポート用の読みやすい説明提供 3. 命名規則: 明確性のため givenXwhenYthenZ 4. AAA パターン: 明示的な // ARRANGE, // ACT, // ASSERT コメント 5. @BeforeEach: 重複削減のためテストデータを共通設定 6. assertDoesNotThrow: 例外をキャッチせずに成功シナリオをテスト 7. assertThrows: AssertJを使用したメッセージ検証で例外シナリオをテスト 8. 包括的カバレッジ: 正常系、null入力、エッジケース、例外をテスト 9. 相互作用検証: Mockito verify() でメソッド呼び出しが正しく行われたか確認 10. Never検証: never() でエラーシナリオでメソッドが呼ばれていないことを確認 カバレッジ付きテスト実行: テストするメソッド別にグループ化するため@Nestedクラス使用 レポートで見やすいテスト説明のため@DisplayName使用 テストメソッド命名はgivenXwhenYthenZ規則に従う 重複削減のため@BeforeEachで共通テストデータ設定 明示的コメント(// ARRANGE, // ACT, // ASSERT)でAAAパターン従う 成功シナリオではassertDoesNotThrow使用 例外シナリオではメッセージ検証と共にassertThrows使用 AssertJ contains()またはisEqualTo()で例外メッセージ検証 全パブリックメソッドの正常系パスをテスト null入力ハンドリングテスト エッジケース(空のコレクション、境界値、負のID、空文字列)テスト 例外シナリオを包括的にテスト 外部依存関
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- docs/ja-JP/skills/quarkus-tdd/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.595Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.