Running the XUnit tests suites
The (line cut) icon means that you MUST NOT insert a line break) :tests suites can be applied if you have downloaded 's full distribution. Open a console and at the prompt, type the following command from the home directory (note that the
$ java -cp reflex-0.4.0.jar:xunit-0.4.0.jar:libext/hsqldb.jar org.inria.ns.reflex.ReflexCLI -driver org.hsqldb.jdbcDriver run doc/tests/xunit/run-tests.xcl
This will run the 5test suites below (unit tests for , XML-Oriented Programming, Tutorial tests, XPath tests, and XInclude test suite) and aggregate the reports.
Note that some warnings might appear in the standard output or error while running the tests suites.
is to XML-oriented Programming as JUnit is to Java programs : uses as a simple framework to write repeatable tests. With , you can well-try and improve your own program as well as external XML processes such as XSLT. But you are also encouraged to use for testing Java programs that are producing XML documents.
WUnit : unit tests for Web applications
aims to design unit tests for Web applications thanks to :
- a client emulator (a non-visual browser) with operations for filling HTML forms, clicking on links and buttons, managing cookies, sending URLs to a target server,
- a server emulator, that can be used for Web applications made with servlets or with the Web module available in (which is accessible with a servlet too).
Unit tests for RefleX
The following test suites consist on using active tags and other active materials of each module to proove that the basic features of the engine are working as expected. As they are basic tests, much more elaborate scenarii are available in the XOP section.
In order to demonstrate the viability of the W3C's XML Processing Model Requirements and Use Cases are implemented.technology as a system for XML-oriented Programming, some use cases taken from
This section contains some additional tests that aims to check that new releases of tutorial section.won't break the examples runnable in the
XInclude test suite
XPath test suite
This XPath test suite aims to validate the XPath implementation used in Jaxen + additional hacks that legitimate the presence of this test suite. The XPath test suite is those supplied by Jaxen, but each test is run inside an active sheet to check that the layer doesn't break the engine. For that matter, fixes some bugs that are present in Jaxen (see what fails in the JUnit test).. is based on
Here are the JUnit tests achieved at the lowest level of the engine. They ensure that the basic features on which relies all the machinery are working correctly.