test-patterns

Run Gradle unit, integration, and check tests for Spring Boot Kotlin projects.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/semicolon-devteam/semo --skill test-patterns
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: test-patterns
Source: https://github.com/semicolon-devteam/semo/tree/main/packages/eng/spring/skills/run-tests/references/test-patterns.md
Command: npx skills add https://github.com/semicolon-devteam/semo --skill test-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill includes references (resource) components.

What problem does it solve?

Kotlin/Spring Boot ๊ธฐ๋ฐ˜ ํ…Œ์ŠคํŠธ ํŒจํ„ด์„ ์ •๋ฆฌํ•˜๊ณ  ์˜ˆ์‹œ ์ฝ”๋“œ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Core Features & Use Cases

  • Unit/Integration/Acceptance ํŒจํ„ด ์˜ˆ์‹œ ์ œ๊ณต
  • WebTestClient/WebFlux ํ…Œ์ŠคํŠธ ์‹ค์ „ ์˜ˆ์‹œ
  • ๋ฐ๋ชจ ์ฝ”๋“œ ์Šค๋‹ˆํŽซ์œผ๋กœ ๋น ๋ฅธ ์ ์šฉ

Quick Start

ํ”„๋กœ์ ํŠธ์˜ ํ…Œ์ŠคํŠธ ๊ตฌ์กฐ์— ๋งž์ถฐ ์˜ˆ์‹œ๋ฅผ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค.

Frequently Asked Questions about test-patterns

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

FAQPage Schema
How do I run unit and integration tests in a Kotlin Spring Boot project?โ–ผ

Run unit tests with ./gradlew test and integration tests with ./gradlew integrationTest. Both commands execute the appropriate test suites defined in your Gradle build, discovering and running tests across your Kotlin/Spring Boot project structure.

What testing patterns should I use with WebFlux and WebTestClient in Kotlin?โ–ผ

WebTestClient provides a non-blocking HTTP client for testing reactive Spring WebFlux endpoints in Kotlin. Use it to test async request/response flows, validate status codes and response bodies, and verify reactive stream behavior in integration tests.

How do I verify test coverage in a Spring Boot Kotlin project?โ–ผ

Run ./gradlew check to execute all tests and generate coverage reports. Review the JaCoCo HTML reports to analyze coverage totals, identify gaps in your unit and integration tests, and track coverage metrics across test suites.

Can I use MockK for mocking in Kotlin Spring Boot tests?โ–ผ

Yes, MockK is a Kotlin-native mocking library designed for Kotlin unit tests. It integrates with Spring Boot test frameworks to mock dependencies, verify interactions, and stub return values in your Kotlin test suite.

How do I structure acceptance tests for Spring Boot with Kotlin?โ–ผ

Acceptance tests validate end-to-end workflows using WebTestClient or HTTP clients to exercise full Spring Boot application flows. Organize them separately from unit tests, use realistic test data, and verify complete user journeys and API contracts.

What's the difference between unit, integration, and acceptance test patterns?โ–ผ

Unit tests validate individual Kotlin functions in isolation using mocks. Integration tests verify component interactions within Spring Boot context. Acceptance tests confirm end-to-end workflows through the full application stack.