Hi Mihir,
You would need to parse/analyze both your xquery code, as well as the unit tests itself. It would roughly come down to getting a list of all modules and all functions in each module. Count references to them from your unit tests, calculate how many are/are not referenced compared to the total.. There is xquery code available to parse xquery code, or you could look into the somewhat older xqdoc project that has java code to parse xquery code, and returns function lists for them.. There are some developer tools around, but haven’t heard they support these kind of features.. Cheers, Geert *Van:* [email protected] [mailto: [email protected]] *Namens *Mihir Das *Verzonden:* dinsdag 18 juni 2013 4:04 *Aan:* [email protected] *Onderwerp:* Re: [MarkLogic Dev General] Code coverage in Xquery Hi Eric, Could you please suggest the possible way of doing this? Thanks! Mihir > > > Message: 2 > Date: Wed, 12 Jun 2013 21:41:15 +0000 > From: Eric Bloch <[email protected]> > Subject: Re: [MarkLogic Dev General] Code coverage in Xquery > To: MarkLogic Developer Discussion <[email protected]> > Message-ID: > <93acebc222c637479703aca6268e67162c5...@exchg10-be01.marklogic.com > > Content-Type: text/plain; charset="iso-8859-1" > > I'm not aware of any tooling for this today. > > -Eric > > On Jun 12, 2013, at 9:32 AM, Mihir Das <[email protected]> > wrote: > > > Guys, > > > > I need suggestion to find out Code coverage in unit testing of Xquery. > > > > Thanks in advance! > > > > Mihir > > _______________________________________________ > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
