1、surefire-reports for the individual test results.
借鉴:【已解决】surefire-reports for the individual test results.-CSDN博客
Please refer to D:\javashizhan01\heima-leadnews\heima-leadnews-service\heima-leadnews-article\target\surefire-reports for the individual test results.
解决:
在pom.xml中加入代码:
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <testFailureIgnore>true</testFailureIgnore>
        </configuration>
      </plugin>
    </plugins>
  </build>
2、不知道为什么出现这个情况

3、redis安装测试错误
用finishshell打开redis过后,用法docker ps查看时发现redis无port映射,后续试了很多种方法,都没有映射成功。后来猜测可能是redis版本问题,因为我自己重新docker pull redis了,然后我又重新用的资料中的虚拟机打开redis就没问题了。
4、测试延迟任务报错
没有设置taskinfoLogs默认的执行时间。添加【taskinfoLogs.setExecuteTime(new Date(task.getExecuteTime()));】即可。




















