Validate your Spring yml properties files with a unit test in your CI build

Protect yourself!

Validate yaml configuration file for syntax errors  before deploying your application.  Don't wait until you fail a deployment to recognize simple copy/paste errors and typos.

Unit Test Code

Create JUnit tests that run as part of every build.


Find the  source code on GitHub in freemanSoft/ValidateSpringYml

Source Code

The following code validates application.yml.  You can pass in any file name or the wildcard "*"

The previous Unit Test exercises the following utility method.  This method can validate all files that match the passed in pattern where  "*" means all yml files.

Find the  source code on GitHub in freemanSoft/ValidateSpringYml

Original Post 2017 Oct 3


Popular posts from this blog

Understanding your WSL2 RAM and swap - Changing the default 50%-25%

Installing the RNDIS driver on Windows 11 to use USB Raspberry Pi as network attached

DNS for Azure Point to Site (P2S) VPN - getting the internal IPs