Yep it looks really good but i've never got round to working on it (sorry Mike!). If you checkout the coverage branch, it does work if you know the right urls, but there's a fair bit of additional work needed to integrate it properly into X-ray. Off the top of my head:
- only works on modules stored in a db - ui for specifying which modules to test coverage on etc. - needs updating to support the change to use annotations - there's no tests! Mike put some usage details in the pull request: https://github.com/robwhitby/xray/pull/17 On 18 Jun 2013, at 20:50, Eric Bloch <[email protected]> wrote: > Rob, any advice here? > > E > > Eric Bloch > Director, Community > MarkLogic Corporation > > desk +1 650 655 2390 | mobile +1 650 339 0376 > email [email protected] > web developer.marklogic.com > twitter @eedeebee > > On Jun 18, 2013, at 12:44 PM, Michael Blakeley <[email protected]> > wrote: > >> 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 >> <image002.png> >> >> 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 >> >> _______________________________________________ >> General mailing list >> [email protected] >> http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
