[ajug-members] EMMA + Sonar

nts at neilshannon.com nts at neilshannon.com
Mon Oct 4 16:04:23 EDT 2010


Update: I think it might have something to do with the fact that the code I'm
instrumenting for coverage is located in a different directory from the
source/compiled code that Sonar is analyzing.  I'm going to take a look at the
plugin's source code and see what I can find.
 

On September 27, 2010 at 5:09 PM Neil Shannon <nts at neilshannon.com> wrote:

> Yes...
>
> Sent from my iPhone
>
> On Sep 27, 2010, at 11:06 AM, Summers Pittman ℝ <secondsun at gmail.com> wrote:
>
> > Are you using Sonar's Emma plugin?
> >
> > Summers Pittman
> > ~Java Developer
> >>> Phone:912 293 2314
> >>> Website:www.sagaoftherealms.net
> >
> >
> >
> >
> > On Mon, Sep 27, 2010 at 11:06 AM, Summers Pittman ℝ <secondsun at gmail.com>
> > wrote:
> >> Perhaps you could set up a build profile for Sonar which doesn't use Emma?
> >>
> >> It seems weird that using Emma would mess with its code coverage.
> >>
> >> Summers Pittman
> >> ~Java Developer
> >>>> Phone:912 293 2314
> >>>> Website:www.sagaoftherealms.net
> >>
> >>
> >>
> >>
> >> On Mon, Sep 27, 2010 at 9:57 AM, Neil Shannon <nts at neilshannon.com> wrote:
> >>> Yes, my Junit results are reported correctly.  I've run it without EMMA
> >>> with normal results.
> >>>
> >>>
> >>> Sent from my iPhone
> >>>
> >>> On Sep 27, 2010, at 9:09 AM, Summers Pittman ℝ <secondsun at gmail.com>
> >>> wrote:
> >>>
> >>>> Does Sonar report your unit test results?
> >>>>
> >>>> Have you tried running Sonar without running Emma?
> >>>>
> >>>> Summers Pittman
> >>>> ~Java Developer
> >>>>>> Phone:912 293 2314
> >>>>>> Website:www.sagaoftherealms.net
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On Mon, Sep 27, 2010 at 8:50 AM, nts at neilshannon.com
> >>>> <nts at neilshannon.com> wrote:
> >>>>> Is anyone using EMMA successfully with Sonar?  I have an ant build that
> >>>>> instruments our code with EMMA and collects coverage information for the
> >>>>> unit tests.  The Hudson EMMA plugin picks up the coverage information
> >>>>> from
> >>>>> the XML file generated by EMMA fine--but I'm having trouble getting the
> >>>>> Sonar EMMA plugin to show coverage information.
> >>>>>
> >>>>>
> >>>>>
> >>>>> During the Sonar maven goal I can see the EMMA sensor running (it even
> >>>>> takes
> >>>>> a few seconds so I know it's finding the .ec and .em report files), but
> >>>>> when
> >>>>> I view the project in Sonar the coverage is always 0.0%.
> >>>>>
> >>>>>
> >>>>>
> >>>>> Any ideas?
> >>>>>
> >>>>>
> >>>>>
> >>>>> Cheers,
> >>>>>
> >>>>>
> >>>>>
> >>>>> Neil
> >>>>>
> >>>>> _______________________________________________
> >>>>> ajug-members mailing list
> >>>>> ajug-members at ajug.org
> >>>>> http://www.ajug.org/mailman/listinfo/ajug-members
> >>>>>
> >>>>>
> >>>>
> >>>> _______________________________________________
> >>>> ajug-members mailing list
> >>>> ajug-members at ajug.org
> >>>> http://www.ajug.org/mailman/listinfo/ajug-members
> >>>
> >>> _______________________________________________
> >>> ajug-members mailing list
> >>> ajug-members at ajug.org
> >>> http://www.ajug.org/mailman/listinfo/ajug-members
> >>>
> >>
> >
> > _______________________________________________
> > ajug-members mailing list
> > ajug-members at ajug.org
> > http://www.ajug.org/mailman/listinfo/ajug-members
>
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20101004/36745cd1/attachment.html 


More information about the ajug-members mailing list