Re:Test smarter, not harder (2020)
by Veuxdo on Monday October 17, 2022 @11:49AM
(#33235245)
Are your tests for "the configuration is correct" or "the configuration file was found and read"...?
[ Parent
| on HN ]
In our old config management, we would indeed go ahead and parse configuration files and check values within the configuration files - even values entirely unrelated to the test at hand. Then you'd go ahead and change some default value in the config management because now you understand the system more and a whole bunch of unrelated tests would start failing.
By now, we mostly do a quick syntax check of the config and the rest is usually handled by smoke-testing the application. The config files are usually only parsed if they contain some non-trivial degree of dynamic computation.