1## diff_test 2 3<pre> 4diff_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-kwargs">kwargs</a>) 5</pre> 6 7A test that compares two files. 8 9The test succeeds if the files' contents match. 10 11 12### Parameters 13 14<table class="params-table"> 15 <colgroup> 16 <col class="col-param" /> 17 <col class="col-description" /> 18 </colgroup> 19 <tbody> 20 <tr id="diff_test-name"> 21 <td><code>name</code></td> 22 <td> 23 required. 24 <p> 25 The name of the test rule. 26 </p> 27 </td> 28 </tr> 29 <tr id="diff_test-file1"> 30 <td><code>file1</code></td> 31 <td> 32 required. 33 <p> 34 Label of the file to compare to <code>file2</code>. 35 </p> 36 </td> 37 </tr> 38 <tr id="diff_test-file2"> 39 <td><code>file2</code></td> 40 <td> 41 required. 42 <p> 43 Label of the file to compare to <code>file1</code>. 44 </p> 45 </td> 46 </tr> 47 <tr id="diff_test-kwargs"> 48 <td><code>kwargs</code></td> 49 <td> 50 optional. 51 <p> 52 The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. 53 </p> 54 </td> 55 </tr> 56 </tbody> 57</table> 58 59 60