testing - 作为 CI/CD 的一部分运行 TestCafe 测试
问题描述
我使用TestCafe创建了几个集成测试。
尝试将其添加为我的 Azure Devops CI/CD 管道的一部分,根据TestCafe 文档,我应该将它们添加到我的构建管道中。
我的问题是你为什么要将它作为构建管道的一部分运行?您肯定想针对您部署的代码运行集成测试吗?
解决方案
在下面的文档中,它提供了如何将 TestCafe 测试集成到 Azure DevOps 服务器和 Azure Pipelines 项目的构建过程中。
https://devexpress.github.io/testcafe/documentation/continuous-integration/azure-devops.html
该文档提供了 YAML 示例和经典构建示例。众所周知,YAML 还不能配置 Release Pipelines,如果你想在 Release Pipelines 中运行 TestCafe 测试,可以参考经典的构建示例:
推荐阅读
- c# - 我如何知道 Datagridview 最后将多少行插入 Oracle
- perl - perl:在哪里可以找到由 *VAR = \0 创建的只读变量的深入知识
- algorithm - 给定循环的时间复杂度 O(logn) 或 O(n)
- c++ - CGAL:多边形重叠测试
- typescript - 使用哪个运算符返回内部可观察对象?
- webpack - Webpack 4,this.htmlWebpackPlugin.getHooks 不是函数
- c# - RestSharp - 如何返回热门任务?
- reactjs - 在 React 中编辑/修改对象数组
- javascript - 如何在动态对象内的数组中添加/删除
- python - 在每个循环中添加任意数量的列