Discussion:
[Cucumber] Re: problem running my cucumber
(too old to reply)
Eric Kessler
2017-08-03 20:35:32 UTC
Permalink
Raw Message
I have a linux box set up to run cucumber scripts and this all works , I
require 'cucumber'
require 'cucumber/rake/task'
desc 'Run Cucumber features and generate an HTML summary, JUnit XML and a
plain text log'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = [
"--no-color",
"--format json -o
/home/rwm132/bdd/test2/dump/report.json",
"--format progress -o
/home/rwm132/bdd/test2/dump/features.log",
"--format junit -o /home/rwm132/bdd/test2/dump/",
"--format html -o
/home/rwm132/bdd/test2/dump/features.html",
"--format pretty"]
end
task :default => "features"
the error I get with the --trace flag is
rake aborted!
cannot load such file -- cucumber
55:in `require'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
/home/rwm132/bdd/test2/Rakefile:1:in `<top (required)>'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/rake_module.rb:25:in `load'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/rake_module.rb:25:in `
load_rakefile'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/application.rb:637:in
`raw_load_rakefile'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/application.rb:94:in `block in
load_rakefile'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/application.rb:165:in `
standard_exception_handling'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/application.rb:93:in
`load_rakefile'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/application.rb:77:in `block in
run'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/application.rb:165:in `
standard_exception_handling'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/rake/application.rb:75:in `run'
/opt/puppetlabs/puppet/bin/rake:33:in `<main>'
so it looks like the rake can see cucumber ..is this due to each being in
separate silos or something?
It looks like it can't see the cucumber gem. Is the gem, in fact, installed
in whatever Ruby is running this script? Ignoring Rake for the moment, are
you able to just run 'cucumber' on the command line and have the executable
be found?


Eric
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...