DEV Community

Discussion on: How do you test your configuration files in production?

Collapse
 
quii profile image
Chris James

It's honestly difficult to test and also not really desirable. Changing MAXIMUM_CATS from 100 to 200 shouldn't cause a test failure should it? In these cases you can logically say, "what if the test assertion is wrong?"

At this level, what you really care about is whether your app is working in production.

For this use:

  • Monitoring with threshold alerts. So for a web app if you get over N non 200s over a period then someone should know about it automatically.
  • Smoke tests running on production
  • Browser tests for key scenarios running on the live site (assuming it's a website)