down arrow Code & Downloads

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

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


  • I have written a gradle plugin to execute xray tests and parse the results as part of a gradle task. If you are interested, please see: https://github.com/Accuity/gradle-xray/tree/master