是否有可靠的命令行或 Powershell 步骤格式来对 TeamCity 进行 运行 RSpec 测试?
Is there a reliable Command Line or Powershell step format to run RSpec tests on TeamCity?
我们正在尝试使用 RSPec 进行 UI 测试,并注意到在尝试将这些与 TeamCity 集成时,我们最终遇到了与环境相关的错误。问题是,当我们 运行 在构建服务器上进行本地测试时,它们 运行 没有任何错误。
我们正在尝试使用命令行或 Powershell 在构建服务器上的工作目录中执行登录测试:
cd D:\web_smoke_tests-master
gem install bundler
rake cloud:chrome
尽管环境包含所有 ruby 依赖项,但我们在构建日志中返回以下错误。请注意,这是一个 windows 构建服务器/构建代理。
[21:31:30]Step 3/5: Execute login test (Command Line)
[21:31:30][Step 3/5] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script #edited out
[21:31:30][Step 3/5] in directory: D:\web_smoke_tests-master
[21:31:30][Step 3/5] 'gem' is not recognized as an internal or external command,
[21:31:30][Step 3/5] operable program or batch file.
[21:31:30][Step 3/5] 'rake' is not recognized as an internal or external command,
[21:31:30][Step 3/5] operable program or batch file.
[21:31:30][Step 3/5] Process exited with code 1
[21:31:30][Step 3/5] Step Execute login test (Command Line) failed
关于以上。这是因为包含构建代理的用户没有安装任何 ruby 依赖项,因此无法识别 "gem" 或 "rake"。
我们正在尝试使用 RSPec 进行 UI 测试,并注意到在尝试将这些与 TeamCity 集成时,我们最终遇到了与环境相关的错误。问题是,当我们 运行 在构建服务器上进行本地测试时,它们 运行 没有任何错误。
我们正在尝试使用命令行或 Powershell 在构建服务器上的工作目录中执行登录测试:
cd D:\web_smoke_tests-master
gem install bundler
rake cloud:chrome
尽管环境包含所有 ruby 依赖项,但我们在构建日志中返回以下错误。请注意,这是一个 windows 构建服务器/构建代理。
[21:31:30]Step 3/5: Execute login test (Command Line)
[21:31:30][Step 3/5] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script #edited out
[21:31:30][Step 3/5] in directory: D:\web_smoke_tests-master
[21:31:30][Step 3/5] 'gem' is not recognized as an internal or external command,
[21:31:30][Step 3/5] operable program or batch file.
[21:31:30][Step 3/5] 'rake' is not recognized as an internal or external command,
[21:31:30][Step 3/5] operable program or batch file.
[21:31:30][Step 3/5] Process exited with code 1
[21:31:30][Step 3/5] Step Execute login test (Command Line) failed
关于以上。这是因为包含构建代理的用户没有安装任何 ruby 依赖项,因此无法识别 "gem" 或 "rake"。