testing-and-observability

Standardizes Kotlin Ktor testing with JUnit 5, MockK, and SLF4J logging.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill testing-and-observability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-and-observability
Source: https://github.com/agnaldo4j/kanban-vision-api-kt/tree/main/.claude/skills/testing-and-observability
Command: npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill testing-and-observability

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the challenge of maintaining high code quality and operational visibility in a Kotlin-based Ktor project by standardizing testing patterns and logging practices.

Core Features & Use Cases

  • Testing Standards: Provides clear guidelines for JUnit 5, MockK, and integration testing with Embedded PostgreSQL.
  • Observability: Defines best practices for SLF4J logging and MDC context propagation to ensure logs are traceable across asynchronous calls.
  • Use Case: Use this skill when writing new test suites for API routes or use cases to ensure they follow the project's strict quality gates and correctly handle domain errors.

Quick Start

Use the testing-and-observability skill to generate a test class for a new use case following the required happy path, validation, and error handling patterns.

Frequently Asked Questions about testing-and-observability

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

FAQPage Schema
How do I standardize testing patterns for Kotlin Ktor applications?

Standardize Kotlin Ktor testing by applying JUnit 5 and MockK to generate unit, integration, and API route tests while ensuring proper dependency mocking and structured logging for production-grade microservices.

How does SLF4J logging handle MDC context propagation in asynchronous Kotlin microservices?

SLF4J logging handles MDC context propagation by ensuring logs remain traceable across asynchronous calls, maintaining consistent log correlation and high operational visibility in Kotlin microservices.

What is the best way to structure JUnit 5 test suites for Ktor API routes?

Structure JUnit 5 test suites for Ktor API routes by covering required happy path, validation, and error handling patterns to satisfy strict quality gates and correctly handle domain errors.

Can I use MockK with Embedded PostgreSQL for Ktor integration testing?

Yes, you can use MockK with Embedded PostgreSQL for Ktor integration testing to properly mock dependencies and validate database interactions while maintaining high code coverage and quality standards.

Why do my Ktor API route tests fail to catch domain errors properly?

Ktor API route tests fail to catch domain errors when they lack standardized validation and error handling patterns, which this testing skill enforces to ensure strict quality gate compliance.