-
I have some small text files that I am creating snapshots of. I would prefer that the snapshot store the full content of these files rather than just the md5 sum so that I can get diffs when changes are found. Is this currently supported? Thanks -- love the tool! |
Beta Was this translation helpful? Give feedback.
Answered by
lukfor
Aug 29, 2024
Replies: 1 comment 1 reply
-
When using snapshot assertions to compare the contents of files, the Example: assert snapshot(
path("${params.outdir}/file1.txt").text,
path("${params.outdir}/file2.txt").text
).match() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wholtz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using snapshot assertions to compare the contents of files, the
text
property is used to directly access the textual content of the files. This allows you to compare the actual text within the files rather than just comparing their md5 sum.Example: