JuliaTesting / ReferenceTests.jl

Utility package for comparing data against reference files
https://juliatesting.github.io/ReferenceTests.jl/latest/
Other
82 stars 14 forks source link

Compare and possibly merge with SnapshotTesting.jl? #122

Open NHDaly opened 1 year ago

NHDaly commented 1 year ago

Hello! We created https://github.com/NHDaly/SnapshotTesting.jl before we knew about this package, it seems!

It would be great to do a comparison and see if they are similar and whether or not they can be merged together! :) Sibling issue in the other repo: https://github.com/NHDaly/SnapshotTesting.jl/issues/5

oxinabox commented 1 year ago

In summary I would say:

SnapshotTesting supports applying to whole directories and to files directly, the reference file/directory should be on disk, and the content being evaluated should also be written to disk. It only has special display for plain text files (?).

ReferenceTests.jl only supports comparing in-memory julia object to one that is read from disk. It uses FileIO.jl to workout how to read and write various objects to and from disk. So it supports a very large set of types. It has special display support for plain text files, and images.