422-frameworks-quarkus-testing-integration-tests — скилл Claude Code
Помогает настраивать интеграционные тесты в Quarkus: от Dev Services и WireMock до проверки native-сборок через @QuarkusIntegrationTest.
npx skills add jabrena/plinth --skill 422-frameworks-quarkus-testing-integration-tests -a claude-codeЧто делает 422-frameworks-quarkus-testing-integration-tests
Скилл настраивает интеграционное тестирование сервисов на Quarkus. Он конфигурирует запуск тестов в JVM с реальными CDI-бинами через @QuarkusTest и поднимает контейнеры через Dev Services. Внешние HTTP-вызовы изолируются заглушками WireMock. Для проверки упакованных JAR и нативных бинарников настраивается @QuarkusIntegrationTest, а для API-проверок подключается REST Assured.
Порядок работы строгий. Перед любыми правками проект обязан компилироваться через mvn compile. Без работающего Docker контейнеры Dev Services не запустятся, поэтому агент остановит работу при ошибках сборки. Разделение тестов организовано по схеме Maven: модульные *Test уходят в Surefire, а тяжёлые *IT и *AT верифицируются через Failsafe.
Какие задачи решает
- настроить Dev Services и Testcontainers для баз данных в Quarkus
- добавить заглушки WireMock для внешних HTTP-сервисов
- настроить black-box проверки через @QuarkusIntegrationTest для нативных бинарников
- разделить запуск быстрых и интеграционных тестов между Surefire и Failsafe
- изолировать тестовые данные через @TestTransaction и очистку в @BeforeEach
Примеры запросов агенту
- Настрой интеграционные тесты для репозитория пользователей с Dev Services PostgreSQL
- Добавь WireMock стабы для внешнего платежного сервиса в тестах Quarkus
- Раздели быстрые unit-тесты и медленные IT-тесты через Surefire и Failsafe
Как установить 422-frameworks-quarkus-testing-integration-tests
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 422-frameworks-quarkus-testing-integration-tests -a claude-code2Вручную: положить файлы
~/.claude/skills/422-frameworks-quarkus-testing-integration-tests/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/422-frameworks-quarkus-testing-integration-tests/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 422-frameworks-quarkus-testing-integration-tests -a codex2Вручную: положить файлы
.agents/skills/422-frameworks-quarkus-testing-integration-tests/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 422-frameworks-quarkus-testing-integration-tests -a cursor2Вручную: положить файлы
.cursor/skills/422-frameworks-quarkus-testing-integration-tests/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth 422-frameworks-quarkus-testing-integration-tests2Вручную: положить файлы
.github/skills/422-frameworks-quarkus-testing-integration-tests/SKILL.md1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 422-frameworks-quarkus-testing-integration-tests -a gemini-cli2Командой платформы
gemini skills install https://github.com/jabrena/plinth --path skills/422-frameworks-quarkus-testing-integration-testsВручную: положить файлы
.devin/skills/422-frameworks-quarkus-testing-integration-tests/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 422-frameworks-quarkus-testing-integration-tests -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о 422-frameworks-quarkus-testing-integration-tests
Как установить 422-frameworks-quarkus-testing-integration-tests в Claude Code?
Выполните команду npx skills add jabrena/plinth --skill 422-frameworks-quarkus-testing-integration-tests -a claude-code.
Что делает этот скилл?
Он помогает создавать и улучшать интеграционные тесты для Quarkus с использованием @QuarkusTest, Dev Services, Testcontainers, WireMock и REST Assured.
Что требуется для запуска тестов с этим скиллом?
Проект должен успешно проходить компиляцию через ./mvnw compile или mvn compile. Для запуска Dev Services и Testcontainers обязательно требуется работающий Docker.
Исходный текст
SKILL.md · Apache-2.0
--- name: 422-frameworks-quarkus-testing-integration-tests description: 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). This should trigger for requests such as Add or improve integration tests in a Quarkus project; Configure Testcontainers or Dev Services for Quarkus tests; Add WireMock stubs for external HTTP dependencies in Quarkus integration tests; Set up @QuarkusIntegrationTest for packaged artifact or native binary testing; Fix test data isolation or configure Maven Surefire/Failsafe split. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # Quarkus Integration Testing Apply integration testing patterns for Quarkus with real wiring and reproducible infrastructure. **What is covered in this Skill?** - @QuarkusTest for in-JVM integration with real CDI wiring - Dev Services for automatic container provisioning (%test.quarkus.datasource.devservices) - Testcontainers via QuarkusTestResourceLifecycleManager (start/stop lifecycle, dynamic config injection) - WireMock for stubbing external HTTP services via QuarkusTestResourceLifecycleManager - @QuarkusIntegrationTest for black-box testing against the packaged JAR or native binary - HTTP testing with REST Assured against the Quarkus test port - Data isolation: @TestTransaction for automatic rollback; @BeforeEach cleanup for HTTP tests - Maven three-tier split: *Test → Surefire (fast), *IT + *AT → Failsafe (verify) - Native-image test considerations with @DisabledOnNativeImage **Scope:** Apply recommendations based on the reference rules and good/bad code examples. ## Constraints Compile before changes; verify after; Docker may be required for containers. - **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change - **PREREQUISITE**: Project must compile before applying integration test improvements - **SAFETY**: If compilation fails, stop immediately - **BLOCKING CONDITION**: Compilation errors must be resolved by the user before proceeding - **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements; Docker is required for Testcontainers and Dev Services - **BEFORE APPLYING**: Read the reference for detailed rules and examples ## When to use this skill - Add or improve integration tests in a Quarkus project - Configure Testcontainers or Dev Services for Quarkus tests - Add WireMock stubs for external HTTP dependencies in Quarkus integration tests - Set up @QuarkusIntegrationTest for packaged artifact or native binary testing - Fix test data isolation or configure Maven Surefire/Failsafe split ## Workflow 1. **Read reference and assess project context** Read `references/422-frameworks-quarkus-testing-integration-tests.md` and inspect the current project setup before proposing changes. 2. **Gather scope and decide target improvements** Identify requested outcomes, constraints, and the minimum safe set of changes to apply. 3. **Apply framework-aligned changes** Implement or refactor configuration/code following the reference patterns and project conventions. 4. **Run verification and report results** Execute appropriate build/tests and summarize what changed, what was verified, and any follow-up actions. ## Reference For detailed guidance, examples, and constraints, see [references/422-frameworks-quarkus-testing-integration-tests.md](references/422-frameworks-quarkus-testing-integration-tests.md).
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth