Active Tests
This section introduces the and the frameworks and describes the tests suites that intend to cover the full functional spectrum of the engine.
Running the XUnit tests suites
The 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
(line cut) icon means that you MUST NOT insert a line break) :
$ 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 5 test 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.
XUnit cookbook
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.
[More...]
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).
[More...]
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.
[More...]
XML-oriented Programming
In order to demonstrate the viability of the technology as a system for XML-oriented Programming, some use cases taken from W3C's XML Processing Model Requirements and Use Cases are implemented.
[More...]
Tutorial tests
This section contains some additional tests that aims to check that new releases of won't break the examples runnable in the tutorial section.
[More...]
XInclude test suite
embeds its own XInclude engine with support of XPointer (XPath) for DOM and even for SAX. The 174 tests applied here are taken from the W3C's XInclude test suite.
[More...]
XPath test suite
This XPath test suite aims to validate the XPath implementation used in . is based on 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).
[More...]
JUnit tests
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.
[More...]

