An nf-test plugin to write assertions on TIFF files
Currently just a stub with the intention that more specific/accurate checks can be added over time.
It adds a .tiff function to the path calls in nf-test. For example:
def tiff = path('filename.tiff').tiffThis tiff validator object exposes two functions, allowing comparison to be based on either the tiff metadata or the raw bitmap data. For example:
def tiff = path(process.out.tiff[0]).tiff
def reference = path('reference.tiff').tiff
// compare the metadata of the two tiffs, ignoring the bitmap data
assert tiff.meta == reference.meta
// or, compare the bitmaps of the two tiffs, ignoring the metadata
assert tiff.bitmaps == reference.bitmapsAdditional granular comparison features for metadata and bitmaps are described in the usage documentation.