You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vm...@apache.org on 2003/04/07 06:18:12 UTC

cvs commit: xml-fop/src/documentation/content/xdocs/dev testing.xml

vmote       2003/04/06 21:18:11

  Modified:    src/documentation/content/xdocs book.xml
  Added:       src/documentation/content/xdocs/dev testing.xml
  Removed:     src/documentation/content/xdocs testing.xml
  Log:
  Move testing.xml to dev area.
  
  Revision  Changes    Path
  1.15      +0 -4      xml-fop/src/documentation/content/xdocs/book.xml
  
  Index: book.xml
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/documentation/content/xdocs/book.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- book.xml	7 Apr 2003 04:09:45 -0000	1.14
  +++ book.xml	7 Apr 2003 04:18:11 -0000	1.15
  @@ -42,10 +42,6 @@
             <menu-item label="Configuration" href="configuration.html"/>
           </menu>
   
  -        <menu label="Developing">
  -          <menu-item label="Testing" href="testing.html"/>
  -        </menu>
  -
           <menu label="Resources">
             <menu-item label="Getting Help" href="gethelp.html"/>
             <menu-item label="FAQs" href="faq.html"/>
  
  
  
  1.1                  xml-fop/src/documentation/content/xdocs/dev/testing.xml
  
  Index: testing.xml
  ===================================================================
  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN"
      "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/resources/schema/dtd/document-v11.dtd">
  
  <document>
      <header>
          <title>Testing FOP</title>
      </header>
  
      <body>
    <section>
      <title>Running and Using Tests</title>
      <p>
  Testing is an important part of getting FOP to operate correctly and conform to the
  necessary standards.
      </p>
      <p>
  A testing system has been set up that works with as a build target when developing
  with FOP. A developer can run the tests after making changes to the code, the aim
  is to have the tests run to verfiy that nothing working has been broken.
      </p>
      <p>
  To setup the testing the developer must place a reference fop.jar in the
  "&lt;cvs_repository>/test/reference/" directory. This jar will be dynamically
  loaded to create the reference output.
      </p>
    </section>
  
    <section>
      <title>W3C TestSuite</title>
      <p>
  The testing is set up so that you can download the testsuite from
  <jump href="http://www.w3.org/Style/XSL/TestSuite/">http://www.w3.org/Style/XSL/TestSuite/</jump>,
  unzip the file into the base directory of FOP.
  Then you can uncomment the lines in the build.xml file in the test target and itwill run through all the tests in the testsuite distribution.
      </p>
    </section>
  
    <section>
      <title>Writing a Test</title>
      <p>
  A test belongs to one of a few catagories. A basic test should excercise one
  element in a number of situations such as changing a property. This should have
  at least one normal value, one border value and one invalid value. If the property
  can be of different types then this should also be included.
      </p>
      <p>
  A bug test is a test that is specifically aimed at a problem with FOP. That is, the test
  is not excercising the specification but rather a problem with FOP in handling a particular
  situation that is not exposed with the other testing.
      </p>
      <p>
  A system test is one that tests the abitlity of FOP to handle a number of different
  elements together.
      </p>
      <p>
  A test can consist of a complete fo document or a part of the document such as
  some elements that will be placed into the flow of a standard document.
      </p>
  
    </section>
    <section>
      <title>Submitting a Test</title>
      <p>
  If you have a test which you think would be useful you should supply the
  test and a diff to the appropriate test suite xml file. Make sure that the
  test works as would be expected against the current build.
      </p>
    </section>
  
    <section>
      <title>How Testing Works</title>
      <p>
  The tests are stored in the "&lt;cvs_repository>/test" directory.
      </p>
      <p>
  You can run the tests by specifying the build target "test" ie: <br/>
  <code>build.sh test</code>
      </p>
      <p>
  This will then compare the current code in the local src directory to a specified
  release of FOP. Any differences between the current code and the output from
  the reference version will be reported. If the test previously passed then the
  test run will have failed.
      </p>
      <p>
  The testing is done by reading a test suite xml file, which corresponds to the
  standard testsuite.dtd supplied from w3c. This xml file contains a test xml
  file and an xsl file (which may simply copy the file). It also contains information
  such as if the test has passed and any comments.
      </p>
      <p>
  For FOP the testing is done by rendering all the testing documents using the
  XML renderer. The XML files are then compared to see if there are any differences.
      </p>
    </section>
  
    <section>
      <title>SVG Testing</title>
      <p>
  The testing of SVG is not part of this testing system. SVG is tested for its rendering
  accuracy by using the transcoding mechanism via Batik. So that the only part that needs
  testing is how the SVG image is embedded inside the flow of the fo document.
      </p>
    </section>
  </body>
  </document>
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org