Closed vipinmuralee closed 6 years ago
hooks.rb
at_exit do
ReportBuilder.configure do |config| config.json_path = 'C:\RubyAutomation\Features\results\cucumber_json' config.report_path = 'C:\RubyAutomation\Features\results\report\report' config.report_types = [:retry, :html] config.report_title = 'My Test Results' config.additional_info = {browser: 'Chrome', environment: 'Stage 5'} end
ReportBuilder.build_report end
Fixed
I have a json results generated in my ruby cucumber framework. let me know how to use the report_builder gem in my framework
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/report_builder-1.7/lib/report_builder/builder.rb:81:in
get_groups': Error:: No file(s) found at C:\RubyAutomation\Features\results\cucumber_json (RuntimeError) from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/report_builder-1.7/lib/report_builder/builder.rb:22:in
build_report' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/report_builder-1.7/lib/report_builder.rb:76:inbuild_report' from C:/RubyAutomation/Features/support/hooks.rb:48:in
block in <top (required)>'