4

我想将 Cucumber 与 Hudson CI 一起使用。是否可以在不使用 JRuby 的情况下在 hudson 中运行黄瓜功能?如果是,您能否提供一些有关如何设置 Hudson 的简单步骤?

谢谢。

4

2 回答 2

3

只要您在服务器上安装了 cucumber,您就可以通过执行 cucumber 作为构建步骤来测试任何应用程序。

有关使用 Hudson(现称为 Jenkins)的示例,请参阅https://github.com/cucumber/cucumber/wiki/Continuous-Integration 。

于 2011-02-04T13:47:03.700 回答
0

安装 Jenkins 和 Rake 插件。然后创建一个 Rakefile。这是一个仅运行带有@jenkins 标记的cukes 的示例

require 'rubygems'
require 'cucumber'

require 'cucumber/rake/task'

Cucumber::Rake::Task.new( :features) do |t|
  t.cucumber_opts = "features --tags @jenkins "
end

需要注意的一件事。如果您在 Windows 中的 IE 中进行测试,则运行“services.msc”,找到 Jenkins 服务,并选中允许其屏幕访问的选项。

于 2013-04-18T21:42:21.567 回答