An XQuery unit test framework for MarkLogic Server

Download as .zip Download as .tar.gz View on GitHub

xray is a framework for writing XQuery unit tests on MarkLogic Server. Test cases are written as standard XQuery functions like this:

declare %test:case function string-equality-example ()
  let $foo := "foo"
  return assert:equal($foo, "foo")

Getting Started

More Information

See the readme file for detailed information about writing and running tests. If you have any questions or suggestions I'd love to hear them, see xray issues on GitHub.



screenshot of html outputscreenshot of terminal output