mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-12-03 11:52:43 +00:00
0f5e1dcafd
* chore(deps): upgrade stardoc This uses the Bazel 7 'starlark_doc_extract' rule which our docsite expects for slurping data. * chore: stardoc setup in WORKSPACE too * chore: skip stardoc on bazel 6 in cases where the legacy extractor produces different docstrings
1.4 KiB
Generated
1.4 KiB
Generated
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
diff_test(name, file1, file2, size, kwargs)
A test that compares two files.
The test succeeds if the files' contents match.
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name of the test rule. | none |
file1 | Label of the file to compare to file2 . |
none |
file2 | Label of the file to compare to file1 . |
none |
size | standard attribute for tests | "small" |
kwargs | The common attributes for tests. | none |