Automated tests 如何在测试代码上运行findbug

Automated tests 如何在测试代码上运行findbug,automated-tests,maven-3,findbugs,Automated Tests,Maven 3,Findbugs,我有一个只测试的maven项目。文件夹结构如下所示 project-root |_ src | |_ main | | |_ java | | |_ resources | |_ test | |_ java | |_ resources |_ .classpath |_ .project 当我运行findbug插件时,它不会选择测试中的类 有没有一种方法可以对正在测试的测试代码进行测试以发现bug 我的maven pon在报告部分有以下插件 <reporti

我有一个只测试的maven项目。文件夹结构如下所示

project-root
|_ src
|  |_ main
|  |  |_ java
|  |  |_ resources
|  |_ test
|     |_ java
|     |_ resources
|_ .classpath
|_ .project
当我运行findbug插件时,它不会选择测试中的类

有没有一种方法可以对正在测试的测试代码进行测试以发现bug

我的maven pon在报告部分有以下插件

<reporting>
 <plugins>
  <plugin>
   <groupId>org.codehaus.mojo</groupId>
    <artifactId>findbugs-maven-plugin</artifactId>
   <version>3.0.1</version>
   <configuration>
    <threshold>low</threshold>
    <xmlOutput>true</xmlOutput>
   </configuration>
  </plugin>
 </plugins>
</reporting>

org.codehaus.mojo
findbugs maven插件
3.0.1
低的
真的
当我执行mvn清理编译站点时,它将生成一个只包含主模块中的类的报告

需要帮助…

检查链接。。。它可以为你的问题提供提示。我正在尝试将findbugs maven插件应用到src和test classes文件夹,但尚未成功。相关: