Changes

Jump to navigation Jump to search
1,068 bytes added ,  17:25, 8 March 2013
no edit summary
This [[Module Library|XQuery Module]] contains functions to for running XQUnit annotated functions in XQuery modules. =Introduction= The more complex a software application grows, the more error-prone it gets. This is why testing frameworks have been developed, which provide a standardized, automatized way for testing software. The [http://en.wikipedia.org/wiki/XUnit XUnit] frameworks (such as SUnit or JUnit) allow testing of atomic unit of a program, such as single functions and algorithms. XQUnit borrows heavily from the existing frameworks: it introduces various new annotations for testing XQuery functions. XQUnit functions are provided to assert the validity of arbitrary conditions expressed in XQuery and to raise errors whenever a condition is not satisfied. Some additional functions exist to run all unit tests of the current module or a set of specified library modules. Please note that this module is still in beta stage, and its functionality is still subject to change. Your feedback is welcome.
=Conventions=
Both functions and errors in this module are assigned to the {{Code|http://basex.org/modules/xqunit}} namespace, which is statically bound to the {{Code|xqunit}} prefix.<br/>
 
=Annotations=
 
==xqunit:test==
{| width='100%'
|-
| width='90' | '''Syntax'''
|{{Code|xqunit:test}}
|-
| '''Summary'''
|Annotates a function as test function.
|}
=Functions=
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu