java-testing
БесплатноБез исполняемых скриптовНе проверенTesting standards using JUnit 5, AssertJ, Mockito, Cucumber, and Spring Boot integration tests for Java. Use when writing or reviewing Java test behavior…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Java Testing Standards
Priority: P0 (CRITICAL)
Universal anti-slop rules (identity fixtures, tautologies, skip/focus, mock echoing, bug-first lock, sleeps, shallow assertions, coverage): anti-slop-rules.md. Only Java deltas follow.
Stack Deltas
- JUnit 5 (Jupiter):
@Test,@BeforeEach,@AfterEach; avoid JUnit 4 classes. - AssertJ:
assertThat(...)over JUnitassertEquals; chain (isNotNull().hasSize(2).contains("X"));assertThatThrownBy(() -> ...)for exception type and message. - Naming:
MethodName_State_Resultor@DisplayName("Check if X when Y"). - Parameterized (
[BE-TEST-01]):@ParameterizedTestwith@ValueSource,@CsvSource, or@MethodSourcefor equivalent inputs and boundary permutations; distinct scenarios or diverging setup may stay separate methods. - Mockito (
[BE-TEST-04]):@ExtendWith(MockitoExtension.class),@Mock,@Spy,@InjectMocks; never mock data-only records; assert observable contract outcomes, not call counts or invocation sequences. - Integration (
[BE-TEST-02]):Testcontainerswith@Containerfor real PostgreSQL/Redis in*IT.java; no raw SQL string mocks. - Isolation: each method independent; use
@DirtiesContextsparingly. - Coverage: diagnostic and project-configured; verify risk-weighted critical paths.
Anti-Patterns
- No logic in tests: keep tests declarative; no loops or if/else branching.
- No
System.out: assert; never print. - No legacy assertions:
assertTrue(a == b)→assertThat(a).isEqualTo(b). - No shared state: tests must be isolated and order-independent.
- No padded tests: never add cases for an arbitrary coverage percentage.
References
Установить java-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл java-testing?
Testing standards using JUnit 5, AssertJ, Mockito, Cucumber, and Spring Boot integration tests for Java. Use when writing or reviewing Java test behavior, including parallel execution and BDD; defer Kotlin-only tests, virtual-thread test infrastructure, and coverage-report/tooling configuration.
Как установить скилл java-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл java-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic