xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Xmlgraphics-fop Wiki] Update of "HowToCreateLayoutEngineTests" by JeremiasMaerki
Date Wed, 21 Dec 2005 14:14:16 GMT
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 JeremiasMaerki:
http://wiki.apache.org/xmlgraphics-fop/HowToCreateLayoutEngineTests

The comment on the change is:
Add notes about the system properties.

------------------------------------------------------------------------------
  
  Or you can setup FOP in your favourite Java IDE and run the JUnit tests from there.
  
- Please note that there is a file {{{disabled-testcases.txt}}} in {{{test/layoutengine}}}
which contains a list of file names. These are the tests which are by default excluded from
the JUnit tests. Tests listed here currently fail and are kept as a reminder for those who
fix bugs or implement missing features.
+ Please note that there is a file {{{disabled-testcases.xml}}} in {{{test/layoutengine}}}
which contains a list of file names. These are the tests which are by default excluded from
the JUnit tests. Tests listed here currently fail and are kept as a reminder for those who
fix bugs or implement missing features.
  
+ === Setting up the Test Suite in your favorite IDE ===
+ 
+ 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.single''': Let's 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.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).
+ 
+ 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.
  == 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


Mime
View raw message