Hi Amanda,

It depends a bit on your xquery files. It is quite easy to use XCC connecting 
to an XDBC server and use an AdHocQuery to call a function within one of your 
xquery library modules directly. To test main modules you could use the same 
method, but use xdmp:invoke to call the main module. Alternatively, you could 
set up an HTTP app server for your xquery files and do plain HTTP GETs to test 
them. Works for main modules only though.

Apologies if this is going to quick for you. It will become more clear with an 
example. But, before we help you with some examples, can you explain a bit more 
what kind of tests you would like to do? It could also help to know more about 
your application structure, database setup, things like that..

Kind regards,
Geert

Van: [email protected] 
[mailto:[email protected]] Namens Amanda Alex
Verzonden: dinsdag 15 februari 2011 8:47
Aan: [email protected]
Onderwerp: [MarkLogic Dev General] Junits testcases for xquery files

Hi,
I would like to know how to write junits test cases for my xquery files.
Can anyone given some example to explain the same.

Regards
Amanda
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to