A test rule that compares two binary files.

The rule uses a Bash command (diff) on Linux/macOS/non-Windows, and a cmd.exe command (fc.exe) on Windows (no Bash is required).

diff_test

A test that compares two files.

The test succeeds if the files' contents match.

PARAMETERS

NameDescriptionDefault Value
nameThe name of the test rule.none
file1Label of the file to compare to file2.none
file2Label of the file to compare to file1.none
failure_messageAdditional message to log if the files' contents do not match.None
kwargsThe common attributes for tests.none