plugin-test-writer

Write IntelliJ Platform tests for Kotlin plugins using JUnit 4 and CodeInsightTestFixture.

1|1|Updated Sep 29, 2025
One-click install
npx skills add https://github.com/j-plugins/spiral-plugin --skill plugin-test-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plugin-test-writer
Source: https://github.com/j-plugins/spiral-plugin/tree/main/.claude/skills/plugin-test-writer
Command: npx skills add https://github.com/j-plugins/spiral-plugin --skill plugin-test-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write IntelliJ Platform tests for this Kotlin plugin using JUnit 4, BasePlatformTestCase, and CodeInsightTestFixture.

Core Features & Use Cases

  • Covers fixture patterns for references, completion, inspections, line markers, rename, folding, file-based indexes, and the testData directory conventions.
  • Provides guidance on setup, test data structure, test naming conventions, and execution with Gradle tasks.

Quick Start

Run the desired test class under src/test/ using the project's Gradle tasks or IDE Run Tests configuration.

Frequently Asked Questions about plugin-test-writer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write IntelliJ Platform tests for a Kotlin plugin?

IntelliJ Platform tests for a Kotlin plugin use JUnit 4, BasePlatformTestCase, and CodeInsightTestFixture to validate features using real platform components and structured testData directories.

What is the best way to test code completion and references in an IntelliJ plugin?

The best way to test code completion and references in an IntelliJ plugin is using CodeInsightTestFixture, which provides fixture patterns to configure test data and verify completion and reference behaviors accurately.

Does IntelliJ Platform testing require mocking framework components?

IntelliJ Platform testing explicitly discourages mocks, requiring you to use real platform components via BasePlatformTestCase to ensure accurate test execution and reliable behavior validation.

How do I execute IntelliJ plugin tests using Gradle?

To execute IntelliJ plugin tests using Gradle, run the desired test class under src/test/ using the project's configured Gradle tasks or your IDE Run Tests configuration to trigger the test suite.

What testData conventions are needed for IntelliJ plugin inspections and line markers?

IntelliJ plugin inspections and line markers require proper Kotlin testData layout conventions, where expected results are structured in specific test data files to validate inspection and folding behaviors correctly.