Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to make use of the parallel_tests gem but when I try to execute "rake parallel:create" I get an error message "can't convert Module into string". Am I including the file wrong? Here is my rakefile.

require 'rubygems'
require 'cucumber'
require 'cucumber/rake/task'
require 'parallel_tests/tasks'

Cucumber::Rake::Task.new(:features) do |t|
  t.profile = 'default'
end

task :default => :features

enter image description here

share|improve this question
Why import. have you tried import 'ParallelTests'? – User yesterday
@User expected Module, got string – Matt Westlake yesterday

1 Answer

up vote 1 down vote accepted

I was able to include the parallel_tests tasks using:

require 'parallel_tests/tasks'

instead of your:

require 'parallel_tests'

import ParallelTests

(the "import" keyword is probably some DSL construct in rake that expects String and not Module?)

share|improve this answer
I've tried include ParallelTests and then it doesn't know how to build the rake task. I also tried include 'ParallelTests' and import 'ParallelTests' – Matt Westlake yesterday
if you don't have any experiance with parallel_tests what gem do you use to run parallel cucumber tests with? – Matt Westlake yesterday
I don't run them in parallel. In any case, please try the updated "recipe" (require 'parallel_tests/tasks'); might work better. – Wejn yesterday
new error, can you please look at it? – Matt Westlake yesterday
1  
hmm, I'm out of ideas. :-/ – Wejn yesterday
show 8 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.