From: Liang HE <goa...@gm...> - 2010-10-11 22:26:43
|
Could somebody help me? ---------- Forwarded message ---------- From: Liang HE <goa...@gm...> Date: Thu, Oct 7, 2010 at 9:18 AM Subject: Re: [Cobertura-devel] Measure web application with referenced library To: "John W. Lewis" <Joh...@sa...> Hi John, Have you got a chance to look into it? Please let me know if you need more information. Thank you! Liang On Fri, Oct 1, 2010 at 11:53 AM, Liang HE <goa...@gm...> wrote: > I am using command line. I've attached instrumentation script and reporting > script. > Appreciate your help! > > > > On Fri, Oct 1, 2010 at 9:47 AM, John W. Lewis <Joh...@sa...> wrote: > >> >> >> If you send your ant script, I will take a look at it. >> >> >> >> *From:* Liang HE [mailto:goa...@gm...] >> *Sent:* Thursday, September 30, 2010 7:08 PM >> *To:* John W. Lewis >> >> *Subject:* Re: [Cobertura-devel] Measure web application with referenced >> library >> >> >> >> Hi John, >> >> Thanks for reply! >> The structure under j2ee/home is like: >> >> j2ee >> |-- home >> | |--applications >> | |-- MainApp >> | |--WEB-INF >> | |-- classes >> |-- shared-lib >> |-- ref1.jar >> |-- ref2.jar >> >> The classes in WEB-INF and jars in share-lib are all instrumented. >> Otherwise they will not be listed in the report. The report shows correct >> coverage of classes but failed reporting reference jars. All referenced >> classes have 0% coverage though I am sure they are accessed. >> >> Thanks, >> Liang >> >> On Thu, Sep 30, 2010 at 11:24 PM, John W. Lewis <Joh...@sa...> >> wrote: >> >> >> >> I would first make sure the classes under j2ee/home are instrumented – it >> sounds like you are calling those the “referenced” classes that are showing >> 0% coverage. >> >> >> >> John >> >> >> >> >> >> *From:* Liang HE [mailto:goa...@gm...] >> *Sent:* Thursday, September 30, 2010 4:07 AM >> *To:* cob...@li... >> *Subject:* Re: [Cobertura-devel] Measure web application with referenced >> library >> >> >> >> Hi All, >> >> I am new to Cobertura, wonder if cobertura is able to measure >> referenced-lib. We have a main project, say App.ear, deployed on OC4j app >> server, and a few projects are packaged and put in shared-lib under >> j2ee/home. I instrumentd all these projects (classes and jar files), and >> started the app server. It runs well. Then I access flushCobertura or stop >> app server to dump coverage information. What is frustrating me is that only >> classes in main Project were measured and have correct data; the referenced >> classes are showed 0% coverage. I am quite sure they were accessed. Should I >> do something particularly to have it work? >> >> Thanks, >> Liang >> >> >> > > |