Changes between Version 3 and Version 4 of BluePrint/XsltTesting


Ignore:
Timestamp:
06/06/14 09:27:37 (11 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrint/XsltTesting

    v3 v4  
    77== Specifics ==
    88
     9=== Test file locations ===
     10
    911The test helper can run as a Python unit test, under control of eden/modules/unit_tests/suite.py.  In case people would like to add tests for other code under eden/static, we can follow the eden/static directory structure.  That is, tests for stylesheets could be placed in eden/modules/unit_tests/static/formats so that, for instance, if people later want to write tests for tools, those could be placed in eden/modules/unit_tests/static/scripts/tools.
     12
     13=== Verifying results ===
     14
     15The transformed file will need to be compared against the golden file.  Options for performing the comparison:
     16
     17* For XML output, read both the transformed file and the golden file into an etree, and compare the etrees.
     18
     19* For S3XML output, read both using S3XML utilities.
     20
     21* Direct textual comparison:  This 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, or for output formats that are not XML.
     22The test helper can run as a Python unit test, under control of eden/modules/unit_tests/suite.py.  In case people would like to add tests for other code under eden/static, we can follow the eden/static directory structure.  That is, tests for stylesheets could be placed in eden/modules/unit_tests/static/formats so that, for instance, if people later want to write tests for tools, those could be placed in eden/modules/unit_tests/static/scripts/tools.