Changes between Version 8 and Version 9 of BluePrint/XsltTesting
- 06/06/14 11:34:20 (9 years ago)
v8 v9 21 21 The transformed file will need to be compared against the golden file. Options for performing the comparison: 22 22 23 * For XML output, read both the transformed file and the golden file into etrees, and compare those. 23 * For XML output, . 24 24 25 25 * For S3XML output, read both using S3XML utilities and compare the S3XML trees. 26 26 27 * For other formats, compare the files as strings. 27 * For other formats, . 28 28 29 29 String comparison is fragile, as alterations in whitespace or change in ordering of elements (where that change is not significant to the meaning) will break the test. However, this is simple, and may be appropriate for getting started, even for formats that produce XML or S3XML. 30 30 31 32 31 33 * Allow the user to provide a comparison function. 32 34 35 33 36 This goes against the purpose of making testing easy, so should be avoided.