Mark says there should be a copy of a slide deck on the googlecode site that 
should answer your questions and give you a brief introduction to xqunit...

E

________________________________________
From: [email protected] 
[[email protected]] On Behalf Of ambika arumugam 
[[email protected]]
Sent: Tuesday, February 15, 2011 6:54 AM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] junits test cases

Hi Eric
I have got the examples on that website Still i need some more explanation for 
them.
If we have a xquery file,how will you write the test cases for it. Can you 
explain in detail.Is the xquery files tested with xcc connectivity or can you 
come up with an testing junit sample for the xquery file i have mentioned.


On Tue, Feb 15, 2011 at 8:09 PM, Eric Bloch 
<[email protected]<mailto:[email protected]>> wrote:
Anyone interested in unit testing for MarkLogic who's bought into using Java 
may want to consider looking at Mark Helmstetter's XQUnit.

http://code.google.com/p/xquery-unit/

________________________________________
From: 
[email protected]<mailto:[email protected]>
 
[[email protected]<mailto:[email protected]>]
 On Behalf Of ambika arumugam 
[[email protected]<mailto:[email protected]>]
Sent: Tuesday, February 15, 2011 2:01 AM
To: [email protected]<mailto:[email protected]>
Subject: [MarkLogic Dev General] junits test cases

Hi,
I have a sample xquery how to write junits for them..

let $pre-data:="Alan"
let $searchResult := (cts:search (fn:collection("exam")//main:title,
                           cts:element-word-query(xs:QName("main:title"), 
$pre-data, ("wildcarded", "case-insensitive"))),
                        <elapseTime>{xdmp:elapsed-time()}</elapseTime>)
return $searchResult.

Please give me the sample junit for it. Also should the flow in testing start 
from junit to xdbc and then to the xquery files? Is this correct?


Regards
Ambika
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general

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

Reply via email to