Changes

Jump to navigation Jump to search
68 bytes added ,  19:48, 23 May 2014
no edit summary
This module borrows heavily from the existing frameworks: it provides various annotations for testing XQuery functions. Unit 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.
With {{Version|7.9}}, the module has been further stabilized and better integrated in the BaseX GUI. =Usage=
=Usage=With {{Version|7.9}}, the unit testing functionality has been further stabilized and better integrated in the BaseX GUI.
Since {{Version|7.9}}, a new A [[Commands#TEST|TEST]] command is available, which has been introduced: It runs all XQUnit tests in a given file or directory. All tested functions are now allowed to perform updates.A test report is generated and returned, which resembles the format returned by other xUnit testing frameworks, such as the Maven Surefire Plugin(see below).
=Conventions=
Both All annotations, functions and errors in this module are assigned to the {{Code|http://basex.org/modules/unit}} namespace, which is statically bound to the {{Code|unit}} prefix.<br/>
=Annotations=
|-
|{{Code|UNIT0003}}
|A test function must is not be updatingpublic.
|-
|{{Code|UNIT0004}}
|{{Code|UNIT0005}}
|An annotation has invalid arguments.
|-
|{{Code|UNIT0006}}
|A test function returns items.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu