【问题标题】:CI with Hudson and CucumberCI 与 Hudson 和 Cucumber
【发布时间】:2011-01-23 04:51:37
【问题描述】:

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

谢谢。

【问题讨论】:

    标签: ruby hudson cucumber bdd hudson-plugins


    【解决方案1】:

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

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

    【讨论】:

    • @corroded,我修好了。显然作者把他的名字改成了黄瓜:)
    【解决方案2】:

    安装 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 服务,并选中允许其屏幕访问的选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-05
      • 2011-04-29
      • 1970-01-01
      • 2010-12-06
      • 1970-01-01
      • 2011-01-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多