找到了如何修复“测试报告",但是没有一个是新的.测试运行了吗?"在詹金斯 [英] How to fix "Test reports were found but none of them are new. Did tests run?" in Jenkins

查看:49
本文介绍了找到了如何修复“测试报告",但是没有一个是新的.测试运行了吗?"在詹金斯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误消息找到了测试报告,但是没有一个是新的.运行测试了吗?"尝试通过电子邮件发送单元测试结果时.原因是我有一个专门的Jenkins作业,它将工件从测试作业导入到自身,并通过电子邮件发送测试结果.之所以这样做,是因为我不希望Jenkins在夜间向所有开发人员发送电子邮件:),因为Jenkins本身不支持延迟的电子邮件通知(很难),所以我在推迟"发送电子邮件.

I am getting the error "Test reports were found but none of them are new. Did tests run?" when trying to send unit test results by email. The reason is that I have a dedicated Jenkins job that imports the artifacts from a test job to itself, and sends the test results by email. The reason why I am doing this is because I don't want Jenkins to send all the developers email during the night :) so I am "post-poning" the email sending since Jenkins itself does not support delayed email notifications (sadly).

但是,在执行通过电子邮件发送测试结果"作业时,测试已经进行了数小时,并且出现问题标题中指定的错误.关于如何解决此问题的任何想法?

However, by the time the "send test results by email" job executes, the tests are hours old and I get the error as specified in the question title. Any ideas on how to get around this problem?

推荐答案

您可以尝试将测试报告的时间戳更新为构建步骤(执行shell脚本").例如

You could try updating the timestamps of the test reports as a build step ("Execute shell script"). E.g.

cd path/to/test/reports
touch *.xml

这篇关于找到了如何修复“测试报告",但是没有一个是新的.测试运行了吗?"在詹金斯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆