Я пытаюсь запустить некоторые тесты огурца, используя rake. Когда я называю rake kickoff
(@kickoff это тег в моей особенности файл) Я получаю следующее сообщение об ошибке:NoMethodError: undefined method `initializer 'для Cucumber: Module
rake aborted!
NoMethodError: undefined method `initializer' for Cucumber:Module
/webdata/jenkins/jobs/kickoff_build/workspace/Rakefile:2:in `<top (required)>'
(See full trace by running task with --trace)
я уже запускать Bundler и установлены все необходимые драгоценные камни.
Вот содержимое моего kickoff_build
признака файла:
@kickoff
Feature: Automated Regression Build
Scenario: As an automation developer, I want to kick off the build
Given the CI server is configured correctly
When the tag in line 1 of this file is called via a rake task
Then this test should run and pass
Вот содержание моего Rakefile
:
require 'rubygems'
require 'cucumber'
require 'cucumber/rake/task'
require 'cuke_sniffer'
Cucumber::Rake::Task.new(:kickoff, :build) do |t|
tags = '--tags [email protected] --tags [email protected] --tags [email protected]_defect'
t.cucumber_opts = "--format html --out results/result.html --format pretty #{tags} --format junit --out features/reports"
end
Какую версию огурца вы используете? – Jesper
Версия 2.0.0 beta 3 – FluffyKittens
Вы запускаете 'bundle exec rake kickoff' или просто' rake kickoff'? – Jesper