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.

[tests/xunit/reflex/reflex.cat]

[tests/xunit/reflex/reflex.exp]

[TODO[In this release, only few test cases have been considered ; others will come soon...]]

The XCL module

[tests/xunit/reflex/reflex-xcl.exp]

[tests/xunit/reflex/xcl-err.xml]

 
Skip
Test name
TestsErrorsFailure
0
Summary of tests of the XML Control Language
13
(3177)
0
(0)
0
(0)
1/13Attributes in DOM document100
2/13Attributes in SAX document100
3/13An empty XCL filter (stream)102800
4/13An empty XCL filter (tree)102800
5/13An XCL filter that uses a pattern that reads forward4100
6/13Grouping with an XCL filter6800
7/13Merging adjacent text nodes200
8/13Namespace in document900
9/13@xcl:timeout200
10/13Use cases in the XCL specification (stream)37300
11/13Use cases in the XCL specification (tree)37300
12/13XInclude filter 1 - XPointer with ID24400
13/13XPath in XCL and XSLT700

The EXP module

[tests/xunit/reflex/reflex-exp.exp]

[tests/xunit/reflex/exp-err.xml]

 
Skip
Test name
TestsErrorsFailure
0
Summary of tests of the Extensible XML Processor
8
(8)
0
(0)
0
(0)
1/8An unknown module is encountered (catalog missing)100
2/8Set the catalog externally to the active sheet100
3/8A foreign attribute of a module can be a marker100
4/8Select automatically the last version of a module100
5/8Select a specific version of a module that doesn't exist100
6/8A foreign attribute of a module must be defined100
7/82 catalogs are used : the first is internal, the second external100
8/8Select a specific version of a module100

The I/O module

[tests/xunit/reflex/reflex-io.exp]

[tests/xunit/reflex/io-err.xml]

 
Skip
Test name
TestsErrorsFailure
0
Summary of tests of the I/O module
3
(6)
0
(0)
0
(0)
1/3Test create/delete directory200
2/3Test directory existence200
3/3Test file absence200

The System module

[tests/xunit/reflex/reflex-sys.exp]

[tests/xunit/reflex/sys-err.xml]

 
Skip
Test name
TestsErrorsFailure
0
Summary of tests of the System module
2
(8)
0
(0)
0
(0)
1/2Set a single environment variable to an active sheet400
2/2Set several environment variables to an active sheet400

The Web module

Focus on server-side features.

  • "[Web] Dump" : fails due to a bug in Winstone ; it is a minor bug since it occurs when both the input stream AND the parameters are get together (which is the case in this dump) which usually won't occur in programs.

[tests/xunit/reflex/reflex-web.exp]

[tests/xunit/reflex/web-err.xml]

 
Skip
Test name
TestsErrorsFailure
0
Summary of Web tests
2
(84)
1
(3)
0
(0)
1/2[Web] String captured by a regexp400
2/2[Web] Dump8030

The WUnit application

Focus on WUnit features.

[tests/xunit/reflex/reflex-wunit.exp]

[tests/xunit/reflex/wunit-err.xml]

 
Skip
Test name
TestsErrorsFailure
0
Summary of WUnit tests
13
(1079)
0
(0)
0
(0)
1/13[Web] 404 Not Found100
2/13[Web] Basic Webapp with default home page26200
3/13[Web] Basic Webapp26200
4/13[Web] Contextless Webapp26200
5/13[Web] Contextless Webapp default page26200
6/13[Web] Fill a form100
7/13[Web] Out of context100
8/13[Web] Servlet in the "WEB-INF/classes" directory400
9/13[Web] Servlet in the "WEB-INF/lib" directory400
10/13[Web] Servlet missing100
11/13[Web] Web app in a .war file400
12/13[Web] Web application selected by directory400
13/13[Web] Windows1100

The Active Schema module

[tests/xunit/reflex/reflex-asl.exp]

[tests/xunit/reflex/asl-err.xml]

 
Skip
Test name
TestsErrorsFailure
0
Summary of tests of the Active Schema Language
11
(32)
0
(0)
0
(0)
1/11Dynamic content model: invalid100
2/11Dynamic content model: valid1100
3/11Dynamic content model: valid2100
4/11Dynamic content model: valid3100
5/11Mixed content500
6/11Schema in catalog: invalid100
7/11Schema in catalog: valid1100
8/11Schema in catalog: valid2100
9/11Schema in catalog: valid3100
10/11Schema in catalog without namespace URI500
11/11Select property1400

The XUnit application

[tests/xunit/reflex/reflex-xunit.exp]

[tests/xunit/reflex/xunit-err.xml]

 
Skip
Test name
TestsErrorsFailure
0
Summary of XUnit tests
7
(49)
0
(0)
0
(0)
1/7Test attribute value not equals300
2/7Test attributes equals300
3/7Test attributes not equals300
4/7Test elements with content equals300
5/7Test elements without content equals300
6/7Apply an XSLT template on a namespace aware node600
7/7Test a single template of XSLT2800