我一直在rspec,capybara和turnip为网络应用编写集成测试。
当我在命令行上使用rake:name_of_task在本地计算机上运行测试时,它会起作用,浏览器会弹出一切。我的佣金任务在这里:
desc "Run Integration Tests"
RSpec::Core::RakeTask.new(:integration_test) do |t|
t.pattern = 'spec/*'
t.rspec_opts = ["--format documentation", "--format documentation", "--out spec/rspec_logs/rspec_log.txt"]
end
在TeamCity中,我使用以下选项进行了构建配置以运行测试:
亚军类型:Rake
启动参数:使用'bundle exec'
附加记者:RSpec
当我运行构建时,我得到了成功......只有没有任何事情发生!
[Execute idme:integration_test] /opt/TeamCity/buildAgent/work/92c98e465299a9e1/spec/extension_helper.rb:3: warning: already initialized constant FIREFOX_PROTOCOL
[11:50:34][Execute idme:integration_test]
[11:50:34][Execute idme:integration_test] Starting.. (0 examples)
[11:50:34][Execute idme:integration_test]
[11:50:34][Execute idme:integration_test] 0 examples, 0 failures, 0 passed
[11:50:34][Execute idme:integration_test]
[11:50:34][Execute idme:integration_test] Finished in 0.000370012 seconds
[11:50:34][Execute idme:integration_test]
[11:50:34][Step 2/2] Process exited with code 0
我不确定该怎么做。有人可以帮忙吗?