jvm-testing

Configure JVM testing with JUnit 5, Kotest, and Testcontainers.

1|1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Jylhis/skills --skill jvm-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jvm-testing
Source: https://github.com/Jylhis/skills/tree/main/skills/jvm-testing
Command: npx skills add https://github.com/Jylhis/skills --skill jvm-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Testing on the JVM without established patterns leads to flaky tests and maintenance overhead. This Skill provides guidance and templates for Java/JUnit 5 and Kotlin/Kotest testing, including assertion libraries and test doubles.

Core Features & Use Cases

  • JUnit 5 basics for Java tests, including setup, annotations, and best practices.
  • Kotest patterns for Kotlin tests and alternative spec styles.
  • Mocking with mockk and mockito, and integration testing with Testcontainers for end-to-end scenarios.
  • Use Case: write a stable suite for a Java service with an in-memory repo and containerized dependencies.

Quick Start

Adapt the examples to your project and start writing JUnit 5 or Kotest tests immediately.

Frequently Asked Questions about jvm-testing

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

FAQPage Schema
How do I set up JVM testing with JUnit 5 and Kotest for Java and Kotlin projects?

To set up JVM testing, you adapt provided templates to configure dependencies and write tests using JUnit 5 for Java or Kotest for Kotlin, enforcing stable test patterns and configurations to prevent flaky tests and reduce maintenance overhead.

What's the best way to use Testcontainers for integration testing on the JVM?

The best way to use Testcontainers for integration testing is to apply the Skill's concrete code patterns for end-to-end scenarios, containerizing external dependencies to ensure stable and reproducible test suites for your Java or Kotlin services.

Can I use mockk and mockito together for mocking in JVM tests?

Yes, you can use mockk and mockito for mocking in JVM tests; the Skill provides guidance on using mockk for Kotlin tests and mockito for Java tests, establishing concrete code patterns for test doubles and assertion libraries like AssertJ.

Does this JVM testing approach support parameterized tests with JUnit 5?

Yes, the JVM testing approach explicitly supports parameterized tests with JUnit 5, covering unit, integration, and parameterized test configurations to enforce concrete code patterns and stable test suites for Java and Kotlin projects.

Why do my JVM tests become flaky without established testing patterns?

JVM tests become flaky without established patterns due to inconsistent test configuration and lack of concrete code patterns; this Skill solves this by enforcing test dependencies, configurations, and best practices for JUnit 5, Kotest, AssertJ, and Testcontainers.