Findbugs, pmd, coverage and other reports on the hudson and its plugins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Findbugs, pmd, coverage and other reports on the hudson and its plugins

Erik Ramfelt
Im wondering if anyone is producing such reports for the plugins and
how they do it? Today I finally got around to build Hudson using
hudson (which worked except for some tests that failed).

I would like to see some reports on certain plugins (read nunit and
clearcase) to see what can be improved. Is it possible to configure a
Hudson maven job to run findbugs/pmd on a plugin and then display the
info (using findbugs/violation plugin).

To me it seems that pmd/findbugs require alot of configuration to be
able to run, and I dont want to put those things into the
plugin/pom.xml. So where should I put this configuration?


How do you develop Hudson and their plugins? Do you gather any reports
about them?


regards
//Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Findbugs, pmd, coverage and other reports on the hudson and its plugins

Ulli Hafner-2
Well, I run these reports for my plugins in eclipse. But the maven
configuration typically is quite easy:

E.g., add the following to your plugins pom:
 

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]]
> On Behalf Of Erik Ramfelt
> Sent: Montag, 22. Oktober 2007 16:46
> To: [hidden email]
> Subject: Findbugs, pmd, coverage and other reports on the
> hudson and its plugins
>
> Im wondering if anyone is producing such reports for the
> plugins and how they do it? Today I finally got around to
> build Hudson using hudson (which worked except for some tests
> that failed).
>
> I would like to see some reports on certain plugins (read nunit and
> clearcase) to see what can be improved. Is it possible to
> configure a Hudson maven job to run findbugs/pmd on a plugin
> and then display the info (using findbugs/violation plugin).
>
> To me it seems that pmd/findbugs require alot of
> configuration to be able to run, and I dont want to put those
> things into the plugin/pom.xml. So where should I put this
> configuration?
>
>
> How do you develop Hudson and their plugins? Do you gather
> any reports about them?
>
>
> regards
> //Erik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

FW: Findbugs, pmd, coverage and other reports on the hudson and its plugins

Ulli Hafner-2
In reply to this post by Erik Ramfelt
Well, I run these reports for my plugins only in eclipse. But the maven
configuration is quite easy:

E.g., add the following to your plugins pom (and adapt it to your
settings):

  <reporting>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-report-plugin</artifactId>
    </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <configuration>
          <configLocation>
            ${project.artifactId}/checkstyle-configuration.xml
          </configLocation>
        </configuration>
      </plugin>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>findbugs-maven-plugin</artifactId>
      <version>1.1.1</version>
      <configuration>
        <xmlOutput>true</xmlOutput>
        <threshold>Low</threshold>
        <effort>Max</effort>
        <debug>false</debug>
        <relaxed>false</relaxed>
        <excludeFilterFile>
          ${project.artifactId}/findbugs-exclusion-filter.xml
        </excludeFilterFile>
        <includeFilterFile>
          ${project.artifactId}/findbugs-inclusion-filter.xml
        </includeFilterFile>
      </configuration>
    </plugin>
  </plugins>
  </reporting>


-----Original Message-----
From: Hafner Ullrich
Sent: Montag, 22. Oktober 2007 17:22
To: '[hidden email]'
Subject: RE: Findbugs, pmd, coverage and other reports on the hudson and
its plugins

 

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf

> Of Erik Ramfelt
> Sent: Montag, 22. Oktober 2007 16:46
> To: [hidden email]
> Subject: Findbugs, pmd, coverage and other reports on the hudson and
> its plugins
>
> Im wondering if anyone is producing such reports for the plugins and
> how they do it? Today I finally got around to build Hudson using
> hudson (which worked except for some tests that failed).
>
> I would like to see some reports on certain plugins (read nunit and
> clearcase) to see what can be improved. Is it possible to configure a
> Hudson maven job to run findbugs/pmd on a plugin and then display the
> info (using findbugs/violation plugin).
>
> To me it seems that pmd/findbugs require alot of configuration to be
> able to run, and I dont want to put those things into the
> plugin/pom.xml. So where should I put this configuration?
>
>
> How do you develop Hudson and their plugins? Do you gather
> any reports about them?
>
>
> regards
> //Erik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Findbugs, pmd, coverage and other reports on the hudson and its plugins

Peter Reilly-2
In reply to this post by Ulli Hafner-2
Our local maven wizard (SC) has set me up to
use mvn pmd:pmd cpd:cpd (no changes to pom or ~/.m2/setting.xml)
- I  do not know how to configure them to use other rulesets(pmd) or
  number of tokens(cpd) as I would normally use ant.

Peter


On 10/22/07, Hafner Ullrich <[hidden email]> wrote:

> Well, I run these reports for my plugins in eclipse. But the maven
> configuration typically is quite easy:
>
> E.g., add the following to your plugins pom:
>
>
> > -----Original Message-----
> > From: [hidden email] [mailto:[hidden email]]
> > On Behalf Of Erik Ramfelt
> > Sent: Montag, 22. Oktober 2007 16:46
> > To: [hidden email]
> > Subject: Findbugs, pmd, coverage and other reports on the
> > hudson and its plugins
> >
> > Im wondering if anyone is producing such reports for the
> > plugins and how they do it? Today I finally got around to
> > build Hudson using hudson (which worked except for some tests
> > that failed).
> >
> > I would like to see some reports on certain plugins (read nunit and
> > clearcase) to see what can be improved. Is it possible to
> > configure a Hudson maven job to run findbugs/pmd on a plugin
> > and then display the info (using findbugs/violation plugin).
> >
> > To me it seems that pmd/findbugs require alot of
> > configuration to be able to run, and I dont want to put those
> > things into the plugin/pom.xml. So where should I put this
> > configuration?
> >
> >
> > How do you develop Hudson and their plugins? Do you gather
> > any reports about them?
> >
> >
> > regards
> > //Erik
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Findbugs, pmd, coverage and other reports on the hudson and its plugins

Nikolai Cheltsov
In reply to this post by Erik Ramfelt
I am using maven reporting system. In the pom.xml I include something like this

<reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.1</version>
                <configuration>
                    <formats>
                        <format>html</format>
                        <format>xml</format>
                    </formats>
                </configuration>
            </plugin>
            <plugin>
                <groupId> org.codehaus.mojo</groupId>
                <artifactId>javancss-maven-plugin</artifactId>
                <version>2.0-beta-1</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId> org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                    <showSuccess>false</showSuccess>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>1.1.1</version>
                <configuration>
                    <xmlOutput>true</xmlOutput>
                    <threshold>Low</threshold>
                    <effort>Max</effort>
                </configuration>
            </plugin>        
        </plugins>
    </reporting>

After that, when I run mvn site:site a maven site is generated with all reports. Additionally xml files are generated and Hudson plugins are using them to display all information I need. It seems, that it works fine, and graphically it is very nice represented by the Hudson plugins.

On 10/22/07, Erik Ramfelt <[hidden email]> wrote:
Im wondering if anyone is producing such reports for the plugins and
how they do it? Today I finally got around to build Hudson using
hudson (which worked except for some tests that failed).

I would like to see some reports on certain plugins (read nunit and
clearcase) to see what can be improved. Is it possible to configure a
Hudson maven job to run findbugs/pmd on a plugin and then display the
info (using findbugs/violation plugin).

To me it seems that pmd/findbugs require alot of configuration to be
able to run, and I dont want to put those things into the
plugin/pom.xml. So where should I put this configuration?


How do you develop Hudson and their plugins? Do you gather any reports
about them?


regards
//Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: FW: Findbugs, pmd, coverage and other reports on the hudson and its plugins

vetalok
In reply to this post by Ulli Hafner-2

Did you have checkstyle report in Hudson for every build?
I'm using the same but there in no any link related to checkstyle results in
Hudson UI.


Hafner Ullrich wrote:

>
> Well, I run these reports for my plugins only in eclipse. But the maven
> configuration is quite easy:
>
> E.g., add the following to your plugins pom (and adapt it to your
> settings):
>
>   <reporting>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-surefire-report-plugin</artifactId>
>     </plugin>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-checkstyle-plugin</artifactId>
>         <configuration>
>           <configLocation>
>             ${project.artifactId}/checkstyle-configuration.xml
>           </configLocation>
>         </configuration>
>       </plugin>
>     <plugin>
>       <groupId>org.codehaus.mojo</groupId>
>       <artifactId>findbugs-maven-plugin</artifactId>
>       <version>1.1.1</version>
>       <configuration>
>         <xmlOutput>true</xmlOutput>
>         <threshold>Low</threshold>
>         <effort>Max</effort>
>         <debug>false</debug>
>         <relaxed>false</relaxed>
>         <excludeFilterFile>
>           ${project.artifactId}/findbugs-exclusion-filter.xml
>         </excludeFilterFile>
>         <includeFilterFile>
>           ${project.artifactId}/findbugs-inclusion-filter.xml
>         </includeFilterFile>
>       </configuration>
>     </plugin>
>   </plugins>
>   </reporting>
>
>
> -----Original Message-----
> From: Hafner Ullrich
> Sent: Montag, 22. Oktober 2007 17:22
> To: '[hidden email]'
> Subject: RE: Findbugs, pmd, coverage and other reports on the hudson and
> its plugins
>
>  
>
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On Behalf
>
>> Of Erik Ramfelt
>> Sent: Montag, 22. Oktober 2007 16:46
>> To: [hidden email]
>> Subject: Findbugs, pmd, coverage and other reports on the hudson and
>> its plugins
>>
>> Im wondering if anyone is producing such reports for the plugins and
>> how they do it? Today I finally got around to build Hudson using
>> hudson (which worked except for some tests that failed).
>>
>> I would like to see some reports on certain plugins (read nunit and
>> clearcase) to see what can be improved. Is it possible to configure a
>> Hudson maven job to run findbugs/pmd on a plugin and then display the
>> info (using findbugs/violation plugin).
>>
>> To me it seems that pmd/findbugs require alot of configuration to be
>> able to run, and I dont want to put those things into the
>> plugin/pom.xml. So where should I put this configuration?
>>
>>
>> How do you develop Hudson and their plugins? Do you gather
>> any reports about them?
>>
>>
>> regards
>> //Erik
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>

--
View this message in context: http://www.nabble.com/Findbugs%2C-pmd%2C-coverage-and-other-reports-on-the-hudson-and-its-plugins-tp13345999p14389058.html
Sent from the Hudson users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]