Open radhakrishnanakireddy opened 4 years ago
Yeah, the gem wasn't updated for Cucumber 4. But I don't have time to support agent-ruby anymore.
@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.
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)
@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?
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:in
require' 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:in
require_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: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/cucumber-4.1.0/lib/cucumber/constantize.rb:19:in
rescue in constantize' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/constantize.rb:8:inconstantize' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:215:in
formatter_class' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:201:inblock in formatter_factories' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:199:in
map' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:199:informatter_factories' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:187:in
formatters' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:172:inreport' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:76:in
run!' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/cli/main.rb:29:inexecute!' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/bin/cucumber:9:in
<top (required)>' C:/Ruby26/bin/cucumber:23:inload' C:/Ruby26/bin/cucumber:23:in
environment details ruby -2.6 latest reprotportal with docker.
Please help me with it to resolve
Thank you