Hello, we’ve merged template snapshots test suite. It basically renders templates in safe and non safe mode mentioned in this list:
And compare them to expected snapshots, found here:
If there is a difference, it will be shown as diff by minitest and a test will fail. This is part of our normal test suite executed by Jenkins too.
After review of changes you can either manually do the change in snapshot files or have all snapshot files regenerated using the following rake task:
rake snapshots:generate RAILS_ENV=test
This will prevent issues when a template which we don’t test very often cannot be rendered anymore due to regressions in core, templating stack or template itself. Special attention needed when syncing templates from our community-templates repository.
Big up to Kamil and folks from iRonin and Timo and his team at DM for making this happen. This was only possible due to big refactoring of our templating stack.