You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful if insta could also be used for managing file contents. For instance, some tests may produce CSV (and the plain text / diffing based on strings i great), but if other tests want to produce Parquet files (a binary format) they can't use insta.
How difficult would it be to have something like insta::assert_binary_file(<path>) and insta::assert_text_file(<path>)?
The text was updated successfully, but these errors were encountered:
It could be similar to https://docs.rs/goldenfile/1.1.0/goldenfile/ - output the diff (or diff hashes if the files are binary) and allow accepting to overwrite the expected file (or hash).
I would be accepting a patch for it but I assume the work required would be quite significant since everything in the system currently assumes unicode strings.
It would be helpful if
insta
could also be used for managing file contents. For instance, some tests may produce CSV (and the plain text / diffing based on strings i great), but if other tests want to produce Parquet files (a binary format) they can't use insta.How difficult would it be to have something like
insta::assert_binary_file(<path>)
andinsta::assert_text_file(<path>)
?The text was updated successfully, but these errors were encountered: