ReportBuilder

Ruby gem to merge Cucumber JSON reports and build single HTML Test Report

Installation

gem install report_builder

Information

Usage

Code Examples:

    require 'report_builder'

   # 1
    ReportBuilder.build_report('path/of/json/files/dir')

   # 2
    ReportBuilder.build_report('path/of/json/cucumber.json', 'my_test_report')

   # 3
    ReportBuilder.build_report([
            'path/of/json/cucumber1.json',
            'path/of/json/cucumber2.json',
            'path/of/json/files/dir/'
            ])

   # 4
    ReportBuilder.build_report()

   # 5
    ReportBuilder::COLOR[:passed] = '#ffffff'
    ReportBuilder.build_report()

Command Example:

     report_builder 'path/of/json/files/dir' 'report_file'

Rake Example:

   # Add in Rakefile
      require 'report_builder.rake'
   # Then run rake task report_builder
   rake report_builder ['path/of/json/files/dir','report_file']

Contributing

We're open to any contribution. It has to be tested properly though.

Maintainer

Rajat Thareja

License

Copyright (c) 2016 MIT LICENSE