A test rule that compares two binary files or two directories.
Similar to bazel-skylib's diff_test but also supports comparing directories.
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).
See also: rules_diff
diff_test(<a href="#diff_test-name">name</a>, <a href="#diff_test-file1">file1</a>, <a href="#diff_test-file2">file2</a>, <a href="#diff_test-size">size</a>, <a href="#diff_test-kwargs">kwargs</a>)
A test that compares two files.
The test succeeds if the files' contents match.
PARAMETERS