423-frameworks-quarkus-testing-acceptance-tests

Solid

Use when you need to implement acceptance tests from a Gherkin .feature file for Quarkus applications — including @acceptance scenarios, @QuarkusTest, BaseAcceptanceTest with QuarkusTestResourceLifecycleManager for Testcontainers and WireMock, REST Assured for full HTTP pipeline testing, WireMock JSON mapping files (classpath:wiremock/mappings/), *AT suffix naming, and Maven Surefire/Failsafe three-tier split. Requires the .feature file in context. Part of the skills-for-java project

Testing & QA 393 stars 78 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 92/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Quarkus acceptance tests from Gherkin Implement happy-path acceptance tests from Gherkin for Quarkus using real HTTP and infrastructure. **What is covered in this Skill?** - Preconditions: .feature file in context; Quarkus project confirmed - Parsing and filtering scenarios tagged @acceptance / @acceptance-tests - BaseAcceptanceTest with @QuarkusTest, @QuarkusTestResource, and QuarkusTestResourceLifecycleManager for: - Testcontainers (PostgreSQL, Kafka) with dynamic config injection on startup - WireMock with wireMockServer.resetAll() in @BeforeEach to isolate stubs - Concrete acceptance test class extending BaseAcceptanceTest: - @DisplayName mirroring the Gherkin scenario title - Given (stubs + fixtures) / When (REST Assured HTTP call) / Then (response assertions + wireMock.verify) - WireMock JSON mapping files under classpath:wiremock/mappings/ with body files under __files/ - Naming convention: *AT suffix for Failsafe; never *Test (Surefire) or *AcceptanceTest - Maven three-tier split: *Test → Surefire, *IT + *AT → Failsafe - Happy-path scope by default; escalate to negatives only when explicitly requested **Scope:** Apply recommendations based on the reference rules and step workflow. ## Constraints Do not generate without a .feature file; compile before and verify after. - **PRECONDITION**: Gherkin `.feature` file must be in context — stop and ask if not provided - **PRECONDITION**: The project must use Quarkus — direct the user to @133 or @323 otherwise...

Details

Author
jabrena
Repository
jabrena/cursor-rules-java
Created
1 years ago
Last Updated
today
Language
Java
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Solid

133-java-testing-acceptance-tests

Use when you need to implement acceptance tests from a Gherkin .feature file for framework-agnostic Java (no Spring Boot, Quarkus, Micronaut) — finding @acceptance scenarios, happy path with RestAssured, Testcontainers for DB/Kafka, WireMock for external REST. Requires .feature file in context. This should trigger for requests such as Review Java code for acceptance tests; Apply best practices for acceptance tests in Java code. Part of cursor-rules-java project

393 Updated today
jabrena
Testing & QA Solid

323-frameworks-spring-boot-testing-acceptance-tests

Use when you need to implement acceptance tests from a Gherkin .feature file for Spring Boot applications — including finding scenarios tagged @acceptance, implementing happy path tests with TestRestTemplate, @SpringBootTest, Testcontainers with @ServiceConnection for DB/Kafka, and WireMock for external REST stubs. Requires .feature file in context. Part of the skills-for-java project

393 Updated today
jabrena
Testing & QA Solid

523-frameworks-micronaut-testing-acceptance-tests

Use when you need to implement acceptance tests from a Gherkin .feature file for Micronaut applications — @acceptance scenarios, @MicronautTest, HttpClient, BaseAcceptanceTest with TestPropertyProvider for Testcontainers and WireMock, *AT suffix, Failsafe. Requires the .feature file in context. Part of the skills-for-java project

393 Updated today
jabrena
Testing & QA Solid

422-frameworks-quarkus-testing-integration-tests

Use when you need to write or improve integration tests for Quarkus — including @QuarkusTest, Dev Services for automatic container provisioning, Testcontainers via QuarkusTestResourceLifecycleManager, WireMock for external HTTP stubs, @QuarkusIntegrationTest for black-box testing against packaged artifacts, REST Assured, data isolation strategies (@TestTransaction vs @BeforeEach cleanup), and Maven Surefire/Failsafe three-tier split (*Test, *IT, *AT). Part of the skills-for-java project

393 Updated today
jabrena
Testing & QA Solid

421-frameworks-quarkus-testing-unit-tests

Use when you need to write fast unit tests for Quarkus applications — including pure tests with @ExtendWith(MockitoExtension.class), @QuarkusTest with @InjectMock for full CDI mock replacement, @InjectSpy for partial CDI bean mocking, REST Assured for resource-focused tests, @ParameterizedTest with @CsvSource / @MethodSource, QuarkusTestProfile for test-specific configuration overrides, and naming conventions (*Test → Surefire, *IT → Failsafe). For framework-agnostic Java use @131-java-testing-unit-testing. Part of the skills-for-java project

393 Updated today
jabrena