Closed oxinabox closed 3 years ago
A cool thing we could do with this.
Rather than just always save to a tempdir, we could have it be configurable via an enviroment variable (default to mktempdir
)
Then during CI we could configure it to upload that directory at the end, as an artifact. Which would make it easier to debug things failing on CI https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts
When we display a failure, it could be useful to display not just our rendered difference, but also display a link that the user can click to open each in an external tool.
This is particularly relevent for images where we use ImageInTerminal to display at low resolution. But if the difference is subtle that won't show up.
To do this for the new content we would need to write it to a tempfile, and display a link to that.