Thanks Geert, Michale for your inputs.
> > Message: 1 > Date: Tue, 18 Jun 2013 21:40:23 +0200 > From: Geert Josten <[email protected]> > Subject: Re: [MarkLogic Dev General] Code coverage in Xquery > To: MarkLogic Developer Discussion <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="windows-1252" > > 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 > > > _______________________________________________ > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://developer.marklogic.com/pipermail/general/attachments/20130618/d0d2a9fc/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Tue, 18 Jun 2013 12:44:44 -0700 > From: Michael Blakeley <[email protected]> > Subject: Re: [MarkLogic Dev General] Code coverage in Xquery > To: MarkLogic Developer Discussion <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="windows-1252" > > https://github.com/robwhitby/xray/tree/coverage has an implementation. I haven't heard from Rob about merging this into the main xray branch, but the branch is available. > > -- Mike > > > On 18 Jun 2013, at 12:40 , Geert Josten <[email protected]> wrote: > > > 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 > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://developer.marklogic.com/pipermail/general/attachments/20130618/a0afa0a6/attachment.html > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: image002.png > Type: image/png > Size: 152358 bytes > Desc: not available > Url : http://developer.marklogic.com/pipermail/general/attachments/20130618/a0afa0a6/attachment.png > > ------------------------------ > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > > > End of General Digest, Vol 108, Issue 35 > ****************************************
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
