How can I configure Azure to publish screenshots of failed Cypress tests when I cancel the Azure Pipeline run?

huangapple go评论109阅读模式
英文:

How can I configure Azure to publish screenshots of failed Cypress tests when I cancel the Azure Pipeline run?

问题

我目前在Azure DevOps管道上运行Cypress构建。我已经配置它在运行完成(或失败)时发布失败测试的截图。如果我取消运行,那么没有任何截图被发布。

如何配置Azure管道,在运行被取消或失败时发布任何失败测试的截图?

英文:

I currently run a Cypress build on and Azure DevOps pipeline. I have it configured to publish screenshots of failing tests when the run is completed (or fails). If I cancel the run none of the screenshots are published.

How can I configure the Azure pipeline to publish screenshots of any failing tests when the run is cancelled or fails?

答案1

得分: 2

请使用always条件替代您现在的条件。

How can I configure Azure to publish screenshots of failed Cypress tests when I cancel the Azure Pipeline run?

链接在这里

英文:

Please use always condition instead of what you have now.

How can I configure Azure to publish screenshots of failed Cypress tests when I cancel the Azure Pipeline run?

Link is here

huangapple
  • 本文由 发表于 2023年8月9日 16:48:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76866040.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定