name: testing-test-writing description: Write effective tests using Quarkus testing patterns, mocks, and best practices. Use this skill when writing unit tests, integration tests, or API tests, creating mock objects with QuarkusMock and Mockito, setting up test fixtures with @BeforeEach, testing REST endpoints with RestAssured, or deciding what to test (avoid testing frameworks directly). Applies to test files (*Test.java, *Spec.js, *.test.ts) and test configuration.
When to use this skill
- When writing unit tests or integration tests
- When creating mock objects with QuarkusMock and @InjectMock
- When using Mockito for stubbing and verification
- When setting up test fixtures with @BeforeEach
- When testing REST endpoints with RestAssured
- When deciding what needs test coverage
- When avoiding tests for framework code (Hibernate, Jackson, etc.)
- When writing @QuarkusTest annotated test classes
- When creating test data and mock responses
- When structuring tests with arrange-act-assert pattern
- When editing *Test.java, *Spec.js, *.test.ts, or test directories
Testing and Test Writing
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle testing test writing.
Instructions
For details, refer to the information provided in this file: testing test writing