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 Apache Wiki <wi...@apache.org> on 2005/12/21 19:40:11 UTC

[Xmlgraphics-fop Wiki] Trivial Update of "HowToCreateLayoutEngineTests" by SimonPepping

Dear Wiki user,

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

The following page has been changed by SimonPepping:
http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests

------------------------------------------------------------------------------
  
  You can run the test suite from your IDE by setting up a JUnit launch configuration on the {{{org.apache.fop.layoutengine.LayoutEngineTestSuite}}} class. There are a few system properties you can use to control which test cases are run:
  
-  * '''fop.layoutengine.disabled''': Here you can specify the filename for the file that contains the disabled test cases (Normally set to: {{{test/layoutengine/disabled-testcases.xml}}})
+  * '''fop.layoutengine.disabled''': Here you can specify the filename for the file that contains the disabled test cases (Normally you should set this to: {{{test/layoutengine/disabled-testcases.xml}}})
-  * '''fop.layoutengine.single''': Let's you specify the name of a single test case to run. (Filename including extension)
+  * '''fop.layoutengine.single''': Lets you specify the name of a single test case to run. (Filename including extension)
-  * '''fop.layoutengine.starts-with''': Filters all available test cases to files that begin with the specified text. ("table" runs all table-related tests)
+  * '''fop.layoutengine.starts-with''': Filters all available test cases to file names that begin with the specified text. ("table" runs all table-related tests)
-  * '''fop.layoutengine.testset''': Let's you specify a particular test set to run. If you don't specify this property the "standard" test set is run (equals to the "standard-testcases" directory).
+  * '''fop.layoutengine.testset''': Lets you specify a particular test set to run. Currently available values are: {{{standard}}} and {{{hyphenation}}}. If you don't specify this property the "standard" test set is run (equals to the "standard-testcases" directory).
  
  To make switching between different sets of test cases easier, consider simply adding an "x" or something like that into the system property which simply causes the property not to be found anymore. This essentially disables it.
+ 
+ Examples:
+ 
+   * {{{-Dfop.layoutengine.disabled=test/layoutengine/disabled-testcases.xml}}}
+   * {{{-Dfop.layoutengine.single=inline_border_padding_block_nested_1.xml}}}
+   * {{{-Dfop.layoutengine.starts-with=table}}}
+   * {{{-Dfop.layoutengine.testset=standard}}}
+ 
+ Example of a disabled property:
+ 
+   * {{{-Dxfop.layoutengine.single=inline_border_padding_block_nested_1.xml}}}
+ 
  == How does it work? ==
  
  The tests are basically XML files with a predefined structure. Here's the raw structure:

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