Adding extra metric values after analyzing is done

View: New views
2 Messages — Rating Filter:   Alert me  

Adding extra metric values after analyzing is done

by Geert Van Damme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi all,

I was wondering if there is a way to add results to a Sonar project after the analyzer is done working ? E.g. a build (not Maven) runs at night with code coverage, after which the sonar analyzes the project (so far no problem, this setup is working fine). Now, the day after, some web tests are ran, and the results of these tests should be 'appended' to the sonar project results.

I know there is a web service API to add metrics, but this only adds the metrics configuration and not a specific value for that metric. It's a quite unconventional way of using Sonar - I know - but I was just wondering if there's any way of doing this ? Web service extension ?

Thanks in advance,

Geert VD

Geert Van Damme
 Java Developer Consultant
E-mail : GVanDamme@...
Tel  : +32
Fax : +32

Isabel NV/S.A.
Keizerinlaan 13-15 Boulevard de l'Impératrice
1000 Brussels - Belgium
RPR Bruxelles / RPM Brussel: BE 0455 530 509
http://www.isabel.eu/    http://www.zoomit.eu/

Zoomit is a Registered Trademark of Isabel NV/S.A.
Disclaimer : http://www.isabel.eu/gps/en/disclaimer/mailing.php


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Adding extra metric values after analyzing is done

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Geert,

This is in fact a quite unusual use case and the first advise is to avoid it. If you don't have choice, there isn't any available web service but you can develop your own web service by using the new Sonar web service extension point.

You can take a look at the source code of the new Sonar Timeline plugin to see how to use this new extension point :

http://docs.codehaus.org/display/SONAR/Timeline+Plugin

regards,
Freddy


On Wed, Oct 28, 2009 at 5:33 AM, Geert Van Damme <GVanDamme@...> wrote:

Hi all,

I was wondering if there is a way to add results to a Sonar project after the analyzer is done working ? E.g. a build (not Maven) runs at night with code coverage, after which the sonar analyzes the project (so far no problem, this setup is working fine). Now, the day after, some web tests are ran, and the results of these tests should be 'appended' to the sonar project results.

I know there is a web service API to add metrics, but this only adds the metrics configuration and not a specific value for that metric. It's a quite unconventional way of using Sonar - I know - but I was just wondering if there's any way of doing this ? Web service extension ?

Thanks in advance,

Geert VD

Geert Van Damme
 Java Developer Consultant
E-mail : GVanDamme@...
Tel  : +32
Fax : +32

Isabel NV/S.A.
Keizerinlaan 13-15 Boulevard de l'Impératrice
1000 Brussels - Belgium
RPR Bruxelles / RPM Brussel: BE 0455 530 509
http://www.isabel.eu/    http://www.zoomit.eu/

Zoomit is a Registered Trademark of Isabel NV/S.A.
Disclaimer : http://www.isabel.eu/gps/en/disclaimer/mailing.php


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email