mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-26 13:30:30 +00:00
5.6 KiB
Generated
5.6 KiB
Generated
Helpers for making test assertions
assert_archive_contains
assert_archive_contains(name, archive, expected, type, kwargs)
Assert that an archive file contains at least the given file entries.
PARAMETERS
assert_contains
assert_contains(name, actual, expected, size, timeout, kwargs)
Generates a test target which fails if the file doesn't contain the string.
Depends on bash, as it creates an sh_test target.
PARAMETERS
assert_directory_contains
assert_directory_contains(name, directory, expected, kwargs)
Assert that a directory contains at least the given file entries.
PARAMETERS
assert_json_matches
assert_json_matches(name, file1, file2, filter1, filter2, kwargs)
Assert that the given json files have the same semantic content.
Uses jq to filter each file. The default value of "."
as the filter
means to compare the whole file.
See the jq rule for more about the filter expressions as well as
setup notes for the jq
toolchain.
PARAMETERS
assert_outputs
assert_outputs(name, actual, expected, kwargs)
Assert that the default outputs of a target are the expected ones.
PARAMETERS