giuseppe-trisciuoglio avatar

Unit Test Config Properties

Tests Spring Boot configuration properties without spinning up the full application context, which means your tests run fast. Uses ApplicationContextRunner to verify property binding, validation constraints, type conversions (like Duration and DataSize), and nested structures. The skill covers the usual pain points: making sure your kebab-case YAML properties actually map to camelCase fields, that @Validated annotations reject bad input, and that profile-specific configs work as expected. It's focused on the @ConfigurationProperties annotation specifically, so if you're testing how application.properties or YAML files bind to your config classes, this gives you the patterns. Includes validation testing with AssertJ assertions and edge case handling.

skills.sh installs
3.8K
GitHub stars
369
last updated
Aug 21, 2026

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill unit-test-config-properties --agent claude-code

Installs into .claude/skills of the current project.

Files

Unit Testing Configuration Properties and Profiles

Overview

This skill provides patterns for unit testing @ConfigurationProperties bindings, environment-specific configurations, and property validation using JUnit 5. Covers testing property name mapping, type conversions, validation constraints, nested structures, and profile-specific configurations without full Spring context startup.

Key validation checkpoints:

  • Property prefix matches between @ConfigurationProperties and test properties
  • Validation triggers on @Validated classes with invalid values
  • Type conversions work for Duration, DataSize, collections, and maps

When to Use

  • Testing @ConfigurationProperties property binding
  • Testing property name mapping and type conversions
  • Validating configuration with @NotBlank, @Min, @Max, @Email constraints
  • Testing environment-specific configurations (dev, prod)
  • Testing nested property structures and collections
  • Verifying default values when properties are not specified
  • Fast configuration tests without Spring context startup

Instructions

Sponsors

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Testing & QA, Java & JVM
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 102
1hyva-themes avatarhyva-playwright-testhyva-themes/hyva-ai-toolsWrite Playwright tests for Hyvä themes with Alpine.js components. This skill should be used when writing e2e tests, creating page objects, or debugging selector1.3Kskills.sh installs
2levnikolaevich avatarln-632-test-e2e-priority-auditorlevnikolaevich/claude-code-skillsAudits E2E coverage for critical user-visible journeys and wasteful E2E tests. Use when reviewing E2E journey value.381skills.sh installs
3ai-dashboad avatare2e-testingai-dashboad/flutter-skillAI-powered E2E testing for any app — Flutter, React Native, iOS, Android, Electron, Tauri, KMP, .NET MAUI. Connects via MCP to running apps so the agent can tak262skills.sh installs
4m1heng avatarfeishu-e2e-testm1heng/clawdbot-feishuLocal E2E debug and test framework for clawd-feishu plugin development. Use when debugging message flow, testing bot responses, verifying Feishu web UI interact122skills.sh installs
5cin12211 avatarjest-testing-expertcin12211/orca-qExpert in Jest testing framework, advanced mocking strategies, snapshot testing, async patterns, TypeScript integration, and performance optimization116skills.sh installs
6dart-lang avatardart-add-unit-testdart-lang/skillsWrite and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correc20.4Kskills.sh installs