From: William Victor Mote Date: Mon, 7 Apr 2003 04:22:59 +0000 (+0000) Subject: Move testing.xml to dev area. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1654 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6574aed004027e86b704ac254108284914a4c398;p=xmlgraphics-fop.git Move testing.xml to dev area. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196222 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/book.xml b/src/documentation/content/xdocs/book.xml index f86e16ad0..e1f1ec610 100644 --- a/src/documentation/content/xdocs/book.xml +++ b/src/documentation/content/xdocs/book.xml @@ -42,10 +42,6 @@ - - - - diff --git a/src/documentation/content/xdocs/dev/book.xml b/src/documentation/content/xdocs/dev/book.xml index 9b55bad38..5b4506342 100644 --- a/src/documentation/content/xdocs/dev/book.xml +++ b/src/documentation/content/xdocs/dev/book.xml @@ -28,6 +28,7 @@ + diff --git a/src/documentation/content/xdocs/dev/testing.xml b/src/documentation/content/xdocs/dev/testing.xml new file mode 100644 index 000000000..3218de2c4 --- /dev/null +++ b/src/documentation/content/xdocs/dev/testing.xml @@ -0,0 +1,108 @@ + + + + +
+ Testing FOP +
+ + +
+ Running and Using Tests +

+Testing is an important part of getting FOP to operate correctly and conform to the +necessary standards. +

+

+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. +

+

+To setup the testing the developer must place a reference fop.jar in the +"<cvs_repository>/test/reference/" directory. This jar will be dynamically +loaded to create the reference output. +

+
+ +
+ W3C TestSuite +

+The testing is set up so that you can download the testsuite from +http://www.w3.org/Style/XSL/TestSuite/, +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. +

+
+ +
+ Writing a Test +

+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. +

+

+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. +

+

+A system test is one that tests the abitlity of FOP to handle a number of different +elements together. +

+

+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. +

+ +
+
+ Submitting a Test +

+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. +

+
+ +
+ How Testing Works +

+The tests are stored in the "<cvs_repository>/test" directory. +

+

+You can run the tests by specifying the build target "test" ie:
+build.sh test +

+

+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. +

+

+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. +

+

+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. +

+
+ +
+ SVG Testing +

+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. +

+
+ +
+ diff --git a/src/documentation/content/xdocs/testing.xml b/src/documentation/content/xdocs/testing.xml deleted file mode 100644 index 3218de2c4..000000000 --- a/src/documentation/content/xdocs/testing.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - -
- Testing FOP -
- - -
- Running and Using Tests -

-Testing is an important part of getting FOP to operate correctly and conform to the -necessary standards. -

-

-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. -

-

-To setup the testing the developer must place a reference fop.jar in the -"<cvs_repository>/test/reference/" directory. This jar will be dynamically -loaded to create the reference output. -

-
- -
- W3C TestSuite -

-The testing is set up so that you can download the testsuite from -http://www.w3.org/Style/XSL/TestSuite/, -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. -

-
- -
- Writing a Test -

-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. -

-

-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. -

-

-A system test is one that tests the abitlity of FOP to handle a number of different -elements together. -

-

-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. -

- -
-
- Submitting a Test -

-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. -

-
- -
- How Testing Works -

-The tests are stored in the "<cvs_repository>/test" directory. -

-

-You can run the tests by specifying the build target "test" ie:
-build.sh test -

-

-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. -

-

-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. -

-

-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. -

-
- -
- SVG Testing -

-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. -

-
- -
-