However Factorio lacks refactoring tools, tests and source control. If your code feels very similar to your bases maybe you're not using these things enough...
I haven't tried doing that in particular, but you can set up a logistic rule (e.g. business requirement) and show red until it passes.
E.g. Measure Ore being produced and shoe red if it isn't a certain amount per time period.