You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Garvin LeClaire <ga...@gmail.com> on 2014/02/28 04:19:15 UTC
Re: [FB-Discuss] Findbugs doesn't check unit tests
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
>