What does this skill do?

The Quarkus TDD Pro Skill guides test-driven development in Quarkus 3.x LTS services, applying the red-green-refactor cycle with JUnit 5, Mockito, and REST Assured. It ensures a minimum coverage of 80% of lines and 70% of branches using JaCoCo, and is optimized for event-driven architectures with Apache Camel, RabbitMQ routes, and asynchronous operations with CompletableFuture.

New REST Endpoints
Create integration tests using @QuarkusTest and REST Assured before deploying new endpoints to your API.
Error Correction
Reproduce bugs using tests that cover edge cases, null inputs, and exceptions before refactoring.
Apache Camel Routes
Test Camel routes and RabbitMQ event handlers with JaCoCo-verified coverage.
Reactive Streams
Validate asynchronous operations using CompletableFuture and LogContext propagation in reactive logic.

Usage examples

🚀 New REST endpoint
I'm going to add a POST endpoint at /api/orders to my Quarkus service. First, create the integration tests using REST Assured, following TDD.
🐛 Fix a bug
I have a bug in OrderService.createOrder when the command is passed with a null customerId. Write the test that reproduces the error, and then the fix.
🐪 Test the Camel route
I need unit tests for my Apache Camel route that consumes messages from RabbitMQ and converts them to JSON.
📊 Check coverage
Run `mvn jacoco:check` and let me know which classes do not meet the 80% line coverage threshold.

Features

Structured TDD Cycle Implement the red-green-refactor approach using JUnit 5 tests organized with @Nested and the AAA (Arrange, Act, Assert) pattern.
REST Integration Tests Use @QuarkusTest and @InjectMock to mock dependencies and validate REST endpoints with REST Assured.
Forced coverage with JaCoCo Set minimum thresholds of 80% for lines and 70% for branches that block the CI/CD pipeline if they are not met.
Support for Apache Camel Try Camel routes, RabbitMQ event handlers, and asynchronous operations with CompletableFuture.
HTML Coverage Report Generates a visual report at target/site/jacoco/index.html after each test run.

Frequently asked questions

It is optimized for Quarkus 3.x LTS, using JUnit 5, Mockito, REST Assured, and JaCoCo 0.8.13 or later.
No. You just need Maven and the jacoco-maven-plugin configured in your pom.xml. The skill will guide you through adding it.
At least 80% test coverage for lines and 70% for branches. If these thresholds are not met, the tests fail in the CI/CD pipeline.
Yes. It is optimized for testing Apache Camel routes, RabbitMQ handlers, and reactive streams with CompletableFuture.
Quarkus TDD Pro — TDD Development in Quarkus with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.