I have a Rakefile which runs my cucumber test suite.
My goal is to invoke these tests by simply navigating/cliking a
webpage served by Sinatra.
Here is how my app.rb looks
require 'rubygems'
require 'sinatra'
require 'cucumber'
require 'cucumber/rake/task'
get "/run" do
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format progress --format html --out
results.html"
end
end
If I navigate to
http://localhost:4567/run I get the following error
NoMethodError at /run
undefined method `desc' for #<Cucumber::Rake::Task:0x7056d5>
file: task.rb location: define_task line: 140
Can you please tell me what I'm doing wrong here? Or is there any
other way of doing this?
Thanks!!
BK