Unfortunately I don't have much experience with writing tests fro XQuery. We only integrated the XSLT testing part into Oxygen. I think that what differs from an XSLT test is that you'll have to use the @query attribute on the root to refer the tested query.
Code: Select all
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" query="myQueryTest.xqy">
<x:scenario label="Scenario for testing a function">
<x:expect label="" select=""/>
Afterwards, to run it, you could try the XProc variant and make sure you select the MarkLogic driver
. I recommend you to ask a question on the XSpec GitHub
project. There was a recent surge in activity on the project and the people there can help you more than I can.