This project is a plugin for Gradle that will run XRay tests on MarkLogic (or any XQuery platform where the tests can be invoked by an HTTP GET call to a URL).
To use this plugin with Gradle, all you need to do is reference it in your build.gradle file, in
a plugins block, like this:
plugins {
	id: 'uk.co.overstory.xray' version '1.0.2'
}
If you already have a plugins block, just add the above reference to it.  Check the
Gradle.org plugins page to find the latest version number of the plugin.
What this plugin does:
- It applies the 
javaplugin if not already applied. That plugin provides the compile/build lifecycle tasks. - This plugin creates the 
xraytask and makestestdepend on it. That causes the XRay tests to be run before thetesttask. 
This plugin accepts several configuration parameters, as listed below.
To customize the XRay runner, set the following properties appropriately in gradle.properties,
or $HOME/.gradle/gradle-properties, or as -Pname=value parameters on the Gradle command line:
xray.scheme=http
xray.hostname=localhost
xray.port=1234
xray.path=/xray/
xray.user=
xray.password=
xray.basic-auth=false
xray.quiet=true
xray.outputXUnit=true
It is also possible to set the XRay query parameters (dir, module, etc) in the build.gradle file
(but not as properties) by explicitly declaring the xray task.  Such as:
xray {
	parameters = [dir: 'xray-tests']
	quiet = false
}
This and other information can be printed out by running the xray-help task.
This plugin invokes the XRay XQuery unit testing framework, which must be installed and invokable on an
HTTP appserver.  The default URL is http://localhost:1234/xray/ (see properties above).  See the
XRay project for details and installation instructions:
Ron Hitchens ([email protected], @ronhitchens))
OverStory Ltd (overstory.co.uk, [email protected], @overstory)
Gradle.org (plugins.gradle.org)
GitHub (github.com/overstory)