xray icon indicating copy to clipboard operation
xray copied to clipboard

An XQuery test framework for MarkLogic

Results 6 xray issues
Sort by recently updated
recently updated
newest added

Is there a recommended way to test a function that writes or updates a document in the database? If I have a test like the following: declare %test:case function write-test...

Given: ``` declare %test:case function compare-2-json-array() { let $actual := array-node { 1, 2, 3 } let $expected := array-node { 1, 3, 5 } return assert:equal($actual, $expected) }; ```...

If a test contains an error with data (e.g. `fn:error((), "test", (1, 2, 3))`), only the last datum is included when using the json output format. In this example the...

The line https://github.com/robwhitby/xray/blob/82379fef28971583767c616399826280f4cfdbc4/src/output/xunit.xsl#L17 has a bug calculating the total errors. This is because an error:error element is added inside the xray:test[@result='error'] element, so the error gets double counted. Note: this...

Hi, I just want to say great work on the framework. We've been using it for a while and have a minor suggestion for the signature of assertions. It would...

My motivation for this is to be able to parse the XRay code base using an XQuery parser generated by the REx parser generator. I am looking to examine and...