[英]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:为了更好地理解,这里是我的项目的一些截图:
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.