writing-tests
OfficialStandardize and accelerate IntelliJ test writing.
Software Engineering#fixtures#junit5#testing-guidelines#intellij#writing-tests#test-disposables#run-in-edt
AuthorJetBrains
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Guidelines for writing tests in IntelliJ IDEA codebase. Use when creating new test classes or test methods.
Core Features & Use Cases
- JUnit 5-first: Use
@TestApplicationinstead of extending test case classes. - Shared fixtures: Use companion objects to hold project/module fixtures for reuse.
- Lifecycle management: Use
@BeforeAll,@AfterAll,@BeforeEach, and@AfterEachfor setup and teardown; prefer@TestDisposablefor disposable resources. - Run in EDT: Apply testing annotations to run tests in the EDT when required.
- Showcase patterns: Refer to showcase tests and fixtures for concrete examples.
Quick Start
Create a new test class annotated with @TestApplication and follow the companion object fixture pattern to bootstrap tests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: writing-tests Download link: https://github.com/JetBrains/intellij-community/archive/main.zip#writing-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.