Hi there,
I ran out of ideas on how to solve this :
(Relevant) Gem list:
cucumber (0.10.7)
cucumber-rails (0.4.1)
bundler (1.0.18)
rails (3.1.0)
I have a custom rake file as following:
require 'cucumber/rake/task'
namespace :cucumber do
Cucumber::Rake::Task.new(:rcov => 'db:test:prepare') do |t|
t.rcov = true
t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/,app\/models\/}
t.rcov_opts << %[--out="features_rcov"]
t.profile = 'default'
t.cucumber_opts = '--format html --out cucumber_test.html'
end
end
But when I try to run rake cucumber:rcov it shows:
rake cucumber:rcov FEATURE=path/to/the/file.feature
/home/emoreth/.rvm/rubies/ruby-1.8.7-p330/bin/ruby -S bundle exec rcov --rails --exclude osx\/objc,gems\/,spec\/,features\/,app\/models\/ --out="features_rcov" "/home/emoreth/.rvm/gems/ruby-1.8.7-p330@project/gems/cucumber-0.10.7/bin/cucumber" -- --format html --out cucumber_test.html --profile default path/to/the/file.feature
Using the default profile...
WARNING: No DRb server is running. Running features locally
#encoding: utf-8
#language: pt
Funcionalidade: Listagem de cursos
Stuff
More stuff
Even more stuff
Contexto:
Step 1
Step 2
Step 3
0 scenarios
3 steps (3 passed)
0m1.614s
No DRb server is running. Running in local process instead ...
/home/emoreth/.rvm/gems/ruby-1.8.7-p330@sispos_novo/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load': no such file to load -- /home/emoreth/www/rails/project/default (LoadError)
It is trying to load default as a file.... If i remove the default profile, it tries to parse "Funcionalidade:" as a ruby command:
/home/emoreth/.rvm/gems/ruby-1.8.7-p330@project/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load': /home/emoreth/www/rails/project/features/path/to/the/file.feature:3: syntax error, unexpected ':', expecting $end (SyntaxError)
Funcionalidade: Listagem de cursos
^
from /home/emoreth/.rvm/gems/ruby-1.8.7-p330@sispos_novo/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load'
No problem if not running rcov...
Any help ?
Regards,
EMoreth