简体   繁体   English

将 BackstopJS 集成到 VSTS 构建管道中

[英]Integration of BackstopJS into a VSTS build pipeline

At the moment I am trying to integrate the npm backstopjs into my VSTS build pipeline.目前我正在尝试将 npm backstopjs 集成到我的 VSTS 构建管道中。 To do this, I have to run it on an npm live server to get a screenshot of the actual build of the app and compare it to the reference screenshot.为此,我必须在 npm live 服务器上运行它以获取应用程序实际构建的屏幕截图,并将其与参考屏幕截图进行比较。 I tried to start this live server with a PowerShell script.我尝试使用 PowerShell 脚本启动此实时服务器。 This script cannot find the path to the npm root path so I cannot run the tests.此脚本找不到 npm 根路径的路径,因此我无法运行测试。

My question is: Is there a way to run BackstopJS tests with VSTS?我的问题是:有没有办法用 VSTS 运行 BackstopJS 测试?

Edit编辑

For the better understanding, here are some screenshots of my project:为了更好地理解,这里是我的项目的一些截图:

YAML 和文件系统

包和 PowerShell

Since Hosted VS2017 agent is the build machine provided by VSTS server, you should build VSTS with the privarte agent which located in the same machine of your live-server, so that the the build project can be searched.由于Hosted VS2017 agent是VSTS服务器提供的构建机器,所以你应该使用位于你live-server的同一台机器上的privarte agent构建VSTS,以便可以搜索到构建项目。

And more details about deploying a private agent, you can refer the document Deploy an agent on Windows .有关部署私有代理的更多详细信息,您可以参考文档在 Windows 上部署代理

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Angular 应用程序构建管道 - VSTS 中的持续集成 - Angular Application Build pipeline - Continuous Integration in VSTS Yaml 脚本,用于在构建管道 VSTS 中添加超时分钟数 - Yaml script for adding timeoutinminutes in Build Pipeline VSTS 对来自不同 Git 存储库的项目使用 VSTS 持续集成管道 - Use VSTS Continous Integration Pipeline with Projects From Different Git Repositories 将已构建的Docker镜像从VSTS Build Pipeline传递到VSTS Release Pipeline - Pass a Built Docker Image from VSTS Build Pipeline to VSTS Release Pipeline VSTS Build Pipeline:在队列之前设置变量值 - VSTS Build Pipeline: set variable value before queue 我可以批量更新VSTS构建管道定义吗? - Can I mass-update VSTS build pipeline definitions? VSTS 构建管道:测试连接到 Azure Key Vault 失败 - VSTS Build Pipeline: Test fails connecting to Azure Key Vault 将Visual Studio编码的UI测试与VSTS / TFS构建管道集成在一起 - Integrate Visual Studio Coded UI Test with VSTS/TFS Build pipeline 在 VSTS (Azure DevOps) 中禁用同一管道的同时构建 - Disable simultaneous build of the same pipeline in VSTS (Azure DevOps) VSTS构建管道如何共享docker任务的output? - VSTS build pipeline how to share output of a docker task?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM