reportportal / agent-ruby

Agent - Ruby Cucumber and RSpec formatters
Apache License 2.0
15 stars 43 forks source link

'cannot load such file -- cucumber/formatter/hook_query_visitor' getting for reportal portal #90

Open radhakrishnanakireddy opened 4 years ago

radhakrishnanakireddy commented 4 years ago

Hi, I am facing 'cannot load such file -- cucumber/formatter/hook_query_visitor' error while trying to use agent-ruby.

cannot load such file -- cucumber/formatter/hook_query_visitor Error creating formatter: ReportPortal::Cucumber::Formatter (LoadError) C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' C:/Ruby26/lib/ruby/gems/2.6.0/gems/reportportal-0.7/lib/report_portal/cucumber/report.rb:20:in <top (required)>' C:/Ruby26/lib/ruby/gems/2.6.0/gems/reportportal-0.7/lib/report_portal/cucumber/formatter.rb:21:inrequire_relative' C:/Ruby26/lib/ruby/gems/2.6.0/gems/reportportal-0.7/lib/report_portal/cucumber/formatter.rb:21:in <top (required)>' C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:inrequire' C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/constantize.rb:19:inrescue in constantize' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/constantize.rb:8:in constantize' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:215:informatter_class' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:201:in block in formatter_factories' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:199:inmap' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:199:in formatter_factories' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:187:informatters' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:172:in report' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:76:inrun!' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/cli/main.rb:29:in execute!' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/bin/cucumber:9:in<top (required)>' C:/Ruby26/bin/cucumber:23:in load' C:/Ruby26/bin/cucumber:23:in

'

environment details ruby -2.6 latest reprotportal with docker.

Please help me with it to resolve

Thank you

abotalov commented 4 years ago

Yeah, the gem wasn't updated for Cucumber 4. But I don't have time to support agent-ruby anymore.

pmthexton commented 4 years ago

@radhakrishnanakireddy I've added support for cucumber > 4 in to a branch at https://github.com/pmthexton/agent-ruby/tree/cucumber4

I'm not convinced this is the cleanest or most correct way of doing so, but if your focus on it simply "working", then it should be good enough to see you through.

Note: I've only done this for cucumber, I've not paid any attention to parallel cucumber or rspec as I didn't need to worry about them for my use case.

sravan666 commented 3 years ago

Is reportportal support cucumber 6.0.0? We are using the ruby with BDD.

I'm getting error like below cannot load such file -- http Error creating formatter: ReportPortal::Cucumber::Formatter (LoadError)

dvernikos commented 1 year ago

@pmthexton I have inserted gem 'reportportal', git: 'https://github.com/pmthexton/agent-ruby.git', branch: 'cucumber4' in my Gemfile to use your fix for Cucumber > 4, but I still get the same error mentioned here. Care to shed some light here?