wacl-york / mcm-web

Code for the MCM web application
1 stars 2 forks source link

Feature/exported mechanism regression testing #250

Closed stulacy closed 9 months ago

stulacy commented 9 months ago

This PR adds tests that full mechanism exports give the same output as the file include in the downloadable archive. This is useful as a regression test that any changes to either the mechanism or the export functionality don't have unintended consequences, or to add as a prompt to update the archive files when the mechanism is intentionally updated.

Tests are included for both the MCM and CRI for both FACSIMILE and KPP formats.

stulacy commented 9 months ago

@kilicomu FYI I've (finally!) added in regression tests for the full mechanism export, comparing to the files we provide in the downloadable archives. This is implemented for both FACSIMILE and KPP for both MCM and CRI, so the scaffolding is already in place for future formats and/or mechanisms. These tests will be run on every push.