This tool is under development may be. As per test on this tool, If all the lines in the test cases xqy file are covered then it is showing 100% coverage. It should show the coverage of source code (i.e. module xqy files).
If you have imported a module in your test case and called only one method where the module is having 10 methods. Then also it is showing 100% coverage. May be possible that I don't have the updated tool, if anyone has please provide the link of the updated tool. From: [email protected] [mailto:[email protected]] On Behalf Of Whitby, Rob Sent: Thursday, October 09, 2014 6:33 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Help in xray code coverage The code coverage feature is best described as "experimental", but please create an issue in GitHub and include details of the parameters you are passing in (modules pattern etc). http://github.com/robwhitby/xray Thanks From: priya dharshni <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Thursday, 9 October 2014 13:48 To: general <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] Help in xray code coverage Hi, When I tried with the xray code coverage I got code coverage as 0% . I am getting the following error message in marklogic error log. XDMP-CANCELED: Canceled request "dbg:eval("xquery version "1.0-ml"; import module namespace t="http://github.com/robwhitby/xray/test" at "\xray\test\tests.xqy"; t:check-doc1-not-loaded()")" in eval("xquery version "1.0-ml"; import module namespace t="http://github.com/robwhitby/xray/test" at "\xray\test\tests.xqy"; t:check-doc1-not-loaded()") [1.0-ml] In UI when I click on any passed/failed test case I can see 500 Internal Server Error XDMP-REGEX: (err:FORX0002) fn:matches("xray\test\default-fn-namespace.xqy", "\xray\test\more-tests\module-import-relative.xqy") -- Invalid regular expression in /xray/src/modules-filesystem.xqy, at 48:35, Please let me know if i have missed anything. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
