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 <code>file2</code>.none
file2Label of the file to compare to <code>file1</code>.none
kwargsThe <a href=“https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests”>common attributes for tests</a>.none