From 67ecd632735a45267da051003d7eaf8d8ca1b998 Mon Sep 17 00:00:00 2001
From: c-parsons
-diff_test(name, file1, file2, expect_same, kwargs)
+diff_test(name, file1, file2, kwargs)
-A test that compares the contents of two files.
+A test that compares two files.
-The test succeeds when the files are expected to be the same (with regard to
-file contents) and are in fact the same, or when the files are expected to
-be different and are in fact so.
+The test succeeds if the files' contents match.
### Parameters
@@ -46,17 +44,6 @@ be different and are in fact so.
expect_same
True
- - Whether the files are expected to be the same or not. The - test passes if this is True and the files are the same, or if this is - False and the files are not the same. -
-kwargs
attrs
{}
+ + An optional dictionary to supplement the attrs passed to the + unit test's `rule()` constructor. +
+config_settings
attrs
None
+ optional. default is {}
An optional dictionary to supplement the attrs passed to the unit test's `rule()` constructor. diff --git a/rules/analysis_test.bzl b/rules/analysis_test.bzl index a43ef90..46d32dd 100644 --- a/rules/analysis_test.bzl +++ b/rules/analysis_test.bzl @@ -52,6 +52,5 @@ analysis_test = rule( Args: name: The name of the test rule. - targets: A list of targets to ensure build. - """, + targets: A list of targets to ensure build.""", ) diff --git a/tests/analysis_test_test.sh b/tests/analysis_test_test.sh index 5dc52b8..db9bbac 100755 --- a/tests/analysis_test_test.sh +++ b/tests/analysis_test_test.sh @@ -15,7 +15,7 @@ # limitations under the License. # # End to end tests for analysis_test.bzl. -# +# # End to end tests of analysis_test.bzl cover verification that # analysis_test tests fail when their underlying test targets fail analysis. diff --git a/tests/unittest_test.sh b/tests/unittest_test.sh index 5b9d43f..22239b5 100755 --- a/tests/unittest_test.sh +++ b/tests/unittest_test.sh @@ -15,7 +15,7 @@ # limitations under the License. # # End to end tests for unittest.bzl. -# +# # Specifically, end to end tests of unittest.bzl cover verification that # analysis-phase tests written with unittest.bzl appropriately # cause test failures in cases where violated assertions are made.