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
[email protected]
On Wed, Feb 26, 2014 at 5:35 PM, Eric Kolotyluk <[email protected]>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
> [email protected]
> https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>