You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Kolotyluk <er...@gmail.com> on 2014/02/26 23:35:05 UTC
Findbugs doesn't check unit tests
I added the following to my POM
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
</configuration>
</plugin>
</plugins>
</reporting>
And it works great for my main source, but it does not seem to check my
test source. It seems to me it would be useful to run findbugs on test
code too. Is there some simple way to configure this?
Cheers, Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [FB-Discuss] Findbugs doesn't check unit tests
Posted by Garvin LeClaire <ga...@gmail.com>.
there is an "includeTests" property which is false by default. Add it as
below
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.3</version>
<configuration>
< includeTests>true</includeTests>
<effort>Max</effort>
<threshold>Low</threshold>
</configuration>
</plugin>
</plugins>
</reporting>
Regards,
Garvin LeClaire
garvin.leclaire@gmail.com
On Wed, Feb 26, 2014 at 5:35 PM, Eric Kolotyluk <er...@gmail.com>wrote:
> I added the following to my POM
>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>findbugs-maven-plugin</artifactId>
> <version>2.5.3</version>
> <configuration>
> <effort>Max</effort>
> <threshold>Low</threshold>
> </configuration>
> </plugin>
> </plugins>
> </reporting>
>
> And it works great for my main source, but it does not seem to check my
> test source. It seems to me it would be useful to run findbugs on test code
> too. Is there some simple way to configure this?
>
> Cheers, Eric
> _______________________________________________
> Findbugs-discuss mailing list
> Findbugs-discuss@cs.umd.edu
> https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>
Re: Findbugs doesn't check unit tests
Posted by Eric Kolotyluk <er...@gmail.com>.
Yup, that does the trick. Thanks.
My bad for not checking the plugin page more thoroughly.
Cheers, Eric
On 2/26/2014 3:34 PM, Barrie Treloar wrote:
> On 27 February 2014 09:05, Eric Kolotyluk <er...@gmail.com> wrote:
>> I added the following to my POM
>>
>> <reporting>
>> <plugins>
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>findbugs-maven-plugin</artifactId>
>> <version>2.5.3</version>
>> <configuration>
>> <effort>Max</effort>
>> <threshold>Low</threshold>
>> </configuration>
>> </plugin>
>> </plugins>
>> </reporting>
>>
>> And it works great for my main source, but it does not seem to check my test
>> source. It seems to me it would be useful to run findbugs on test code too.
>> Is there some simple way to configure this?
> I dont use FindBugs.
>
> But Umm, is this what you want?
> http://mojo.codehaus.org/findbugs-maven-plugin/check-mojo.html#includeTests
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Findbugs doesn't check unit tests
Posted by Barrie Treloar <ba...@gmail.com>.
On 27 February 2014 09:05, Eric Kolotyluk <er...@gmail.com> wrote:
> I added the following to my POM
>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>findbugs-maven-plugin</artifactId>
> <version>2.5.3</version>
> <configuration>
> <effort>Max</effort>
> <threshold>Low</threshold>
> </configuration>
> </plugin>
> </plugins>
> </reporting>
>
> And it works great for my main source, but it does not seem to check my test
> source. It seems to me it would be useful to run findbugs on test code too.
> Is there some simple way to configure this?
I dont use FindBugs.
But Umm, is this what you want?
http://mojo.codehaus.org/findbugs-maven-plugin/check-mojo.html#includeTests
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org