Agent skill · software engineering · affaan-m

quarkus-tdd

Test-driven development for Quarkus 3.x LTS using JUnit 5, Mockito, REST Assured, Camel testing, and JaCoCo. Use when adding features, fixing bugs, or refactoring event-driven services.

Why this skill is useful

Provides specific TDD patterns and JUnit 5 examples for testing Quarkus services that the AI wouldn't reliably generate on its own.

What it needs

About 5k tokens when loaded. Last updated 2026-08-06. 238,342 stars on the source repository.

What this skill does

Quarkus TDD Workflow TDD guidance for Quarkus 3.x services with 80%+ coverage (unit + integration). Optimized for event-driven architectures with Apache Camel. When to Use New features or REST endpoints Bug fixes or refactors Adding data access logic, security rules, or reactive streams Testing Apache Camel routes and event handlers Testing event-driven services with RabbitMQ Testing conditional flow logic Validating CompletableFuture async operations Testing LogContext propagation Workflow 1. Write tests first (they should fail) 2. Implement minimal code to pass 3. Refactor with tests green 4. Enforce coverage with JaCoCo (80%+ target) Unit Tests with @Nested Organization Follow this structured approach for comprehensive, readable tests: Key Testing Patterns 1. @Nested Classes: Group tests by method being tested 2. @DisplayName: Provide readable test descriptions for test reports 3. Naming Convention: givenXwhenYthenZ for clarity 4. AAA Pattern: Explicit // ARRANGE, // ACT, // ASSERT comments 5. @BeforeEach: Setup common test data to reduce duplication 6. assertDoesNotThrow: Test success scenarios without catching exceptions 7. assertThrows: Test exception scenarios with message validation using AssertJ 8. Comprehensive Coverage: Test happy paths, null inputs, edge cases, exceptions 9. Verify Interactions: Use Mockito verify() to ensure methods are called correctly 10. Never Verify: Use never() to ensure methods are NOT called in error scenarios Testing Camel Routes Testing Event Services Testing CompletableFuture Resource Layer Tests (REST Assured) Integration Tests with Real Database Coverage with JaCoCo Maven Configuration (Complete) `xml <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.13</version> <executions> <!-- Prepare agent for test execut

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills affaan-m/quarkus-tdd--e40a26

View the source on GitHub

Browse the @skills marketplace