【发布时间】:2021-04-15 02:55:16
【问题描述】:
我正在我的发布管道中设置 cypress 测试。在我的发布管道中,我运行这些 npm 命令:
"test": "cypress run --spec cypress/integration/localAuth-spec.js",
"ci": "nuxt generate -s && start-server-and-test start-server http://localhost:3000 test",
测试运行并使用 publish test results 我可以将结果发布到版本中的测试选项卡:
在我的 cypress.config 中,我导出了视频,我可以在发布管道日志中看到这种情况。但我想知道如何将视频链接到测试。
【问题讨论】:
-
如果没有内置功能:Azure DevOps 提供了一个 API 来上传测试结果和测试运行附件:docs.microsoft.com/en-us/rest/api/azure/devops/test/…。
标签: azure-devops azure-pipelines