writing-tests

Official

Standardize and accelerate IntelliJ test writing.

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 @TestApplication instead of extending test case classes.
  • Shared fixtures: Use companion objects to hold project/module fixtures for reuse.
  • Lifecycle management: Use @BeforeAll, @AfterAll, @BeforeEach, and @AfterEach for setup and teardown; prefer @TestDisposable for 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.