
unit-test-config-properties
Provides patterns for unit testing `@ConfigurationProperties` classes
by giuseppe-trisciuoglioFree
Description
This agent skill gives patterns for unit testing Spring Boot @ConfigurationProperties classes, using JUnit 5 and the @ConfigurationPropertiesTest approach. It checks that properties bind correctly from configuration into the typed class. The checks listed include that the property prefix in the test matches the prefix on the class, that validation fires on @Validated classes when a value is invalid, and that type conversions work for Duration, DataSize, collections and maps. It also covers nested structures and profile-specific configuration, so a test can confirm that a development profile and a production profile load the values they should. The tests run without starting the full Spring context, so they stay quick and do not need a live application. The skill is an instruction set for an AI coding agent working in a Java and Spring Boot project. It sits in the developer-kit repository by giuseppe-trisciuoglio, which has about 371 stars on GitHub, alongside other unit testing skills for Spring. Its scope is the binding and validation of configuration, not the behavior of the code that reads it.…
Highlights
- Check property binding into typed classes
- Validate @Validated configuration with invalid values
- Test Duration, DataSize, collection and map conversions
- Cover nested configuration structures
- Test profile-specific configuration
Ratings & Reviews
No ratings yet
Be the first to rate unit-test-config-properties.
People also visit

unit-test-application-events
Provides patterns for unit testing Spring application events
unit-test-config-properties FAQ
What does it test?
It tests how @ConfigurationProperties classes bind their values, how validation behaves, and how profile-specific settings load.
Does it start the whole application?
No. The tests run without full Spring context startup.
Which conversions does it check?
It checks Duration, DataSize, collections and maps, along with nested structures.
How do I install it?
Run npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-config-properties.
What security audits has it passed?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best unit-test-config-properties alternatives?
Popular alternatives to unit-test-config-properties include unit-test-parameterized, unit-test-exception-handler and unit-test-application-events. See all unit-test-config-properties alternatives










