在 teamcity 中,我在 .sln 文件构建后运行了一批 mstest。当测试失败时,我不会收到电子邮件。为什么?
当编译失败时,我在 teamcity 中的电子邮件通知程序运行良好。我将其设置为通知我失败以及失败后的第一次成功。
但是当一个测试失败时,我就不会收到电子邮件。当至少一项测试未通过时,构建将失败。内部版本号旁边有一个漂亮的红点。
奇怪的是,有时我会在测试修复后收到一封成功电子邮件,但并非总是如此。有谁知道我可以使用哪些日志来找出我收不到电子邮件的原因?
这是另一个奇怪的事情:我设置了通知,以便在构建失败和构建成功时向我发送电子邮件。当测试失败时,我仍然没有收到电子邮件。
不过,我确实在 Windows 尝试程序中收到了正确的通知。
My email notifier in teamcity works well when the compilation fails. I have it set to notify me of failures and also the first success after the failure.
But when one test fails, I don't get an email. The build is set to fail when at least one test doesn't pass. I have nice red dot next to the build number.
The weird thing is, sometimes I get a success email after the test has been fixed, but not always. Does anyone know of any logs I can use to figure out why I'm not getting my email?
Here is another weird thing: I set the notifications to send me an email when the build fails and when the build succeeds. When the tests fail, I still get no email.
I do get notified properly in the windows try program, however.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有 teamcity-notification.log,如果您启用 DEBUG 日志记录,则特别有用:
http://confluence.jetbrains.net/display/TCD65/Reporting+Issues #ReportingIssues-LoggingEvents
电子邮件和托盘通知程序的规则是否相同?如果是,则很可能是传输故障,该错误必须在日志中。
顺便说一句,有 TeamCity 7.0 RC1 可用:
http://confluence.jetbrains.net/display/TW/TeamCity+EAP
There is teamcity-notification.log, especially useful if you enable DEBUG logging:
http://confluence.jetbrains.net/display/TCD65/Reporting+Issues#ReportingIssues-LoggingEvents
Are the rules for email and tray notifiers the same? If yes, most probably that is a transportation failure, the error must be in the log.
BTW there is TeamCity 7.0 RC1 available:
http://confluence.jetbrains.net/display/TW/TeamCity+EAP
我很笨,它们一直在我的垃圾邮件文件夹中。
I'm dumb, they were in my spam folder all along.