You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/07/17 20:24:37 UTC

[Myfaces Wiki] Trivial Update of "Trinidad RenderKit test framework" by MatthiasWessendorf

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by MatthiasWessendorf:
http://wiki.apache.org/myfaces/Trinidad_RenderKit_test_framework

------------------------------------------------------------------------------
  
  In addition, by not requiring the JSP engine to be present, the testcases avoid pulling in unnecessary dependencies and testing "too much".  The testing framework finally gives us a chance to make core changes in the framework, and even entirely rewrite renderers, with a high degree of confidence that our results are entirely as intended.
  
- Test scripts are stored as simple XML files in adf-faces-impl/src/test/resources/org/apache/myfaces/adfinternal/renderkit/testScripts.  The scripts are designed to be extremely simple, nearly trivial, to write, to ensure that we have coverage as wide as possible.
+ Test scripts are stored as simple XML files in ''adf-faces-impl/src/test/resources/org/apache/myfaces/adfinternal/renderkit/testScripts''.  The scripts are designed to be extremely simple, nearly trivial, to write, to ensure that we have coverage as wide as possible.
  
- The desired output of the testcases is stored as "golden" files in 
+ The desired output of the testcases is stored as '''golden''' files in 
- adf-faces-impl/src/test/resources/org/apache/myfaces/adfinternal/renderkit/golden.  These files are source-controlled.  The output of the script is always compared against this "golden" file.  Any diffs are considered a test failure, as are failures to meet with the other verifications listed above. 
+ ''adf-faces-impl/src/test/resources/org/apache/myfaces/adfinternal/renderkit/golden''.  These files are source-controlled.  The output of the script is always compared against this '''golden''' file.  Any diffs are considered a test failure, as are failures to meet with the other verifications listed above. 
  
- The output of these "golden" files is output in a special manner to make diffing easy.  All attributes are listed on separate lines, and attributes are always sorted alphabetically.  This means that we are not testing the order in which attributes are written, which we shouldn't be testing, since order doesn't mean anything.  (Note that these files are written out in XML, not HTML, and this means that boolean attributes show up as disabled="disabled", not just disabled.)
+ The output of these '''golden''' files is output in a special manner to make diffing easy.  All attributes are listed on separate lines, and attributes are always sorted alphabetically.  This means that we are not testing the order in which attributes are written, which we shouldn't be testing, since order doesn't mean anything.  (Note that these files are written out in XML, not HTML, and this means that boolean attributes show up as disabled="disabled", not just disabled.)
  
  == 1.1 Tested combinations ==