首页 > 解决方案 > 作为 CI/CD 的一部分运行 TestCafe 测试

问题描述

我使用TestCafe创建了几个集成测试。

尝试将其添加为我的 Azure Devops CI/CD 管道的一部分,根据TestCafe 文档,我应该将它们添加到我的构建管道中。

我的问题是你为什么要将它作为构建管道的一部分运行?您肯定想针对您部署的代码运行集成测试吗?

标签: testingazure-devopsautomated-testse2e-testingtestcafe

解决方案


在下面的文档中,它提供了如何将 TestCafe 测试集成到 Azure DevOps 服务器和 Azure Pipelines 项目的构建过程中。

https://devexpress.github.io/testcafe/documentation/continuous-integration/azure-devops.html

该文档提供了 YAML 示例和经典构建示例。众所周知,YAML 还不能配置 Release Pipelines,如果你想在 Release Pipelines 中运行 TestCafe 测试,可以参考经典的构建示例:

https://devexpress.github.io/testcafe/documentation/continuous-integration/azure-devops.html#configure-build-task-on-azure-devops-server


推荐阅读