No commit activity in last 3 years
No release in over 3 years
Works with parallel_tests ruby gem to generate a report having a list of slowest and failed examples.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 12.3.3
 Project Readme

parallel-tests-report

Works with parallel_tests gem to generate a consolidated report for the spec groups executed by parallel_tests.

The report generated will include:

  • List of top 20 slowest examples.
  • Rspec command to reproduce the failed example with the bisect option and seed value used.

This gem will also verify the time taken for a test against configured threshold value and report if the time has exceeded.

How it works

  • parallel_tests gem is configured to use a custom formatter provided by this gem using --format and --out options.
  • Once tests are executed a rake task provided by this gem can be executed to parse the json and generate the report.

Installation

Include the gem in your Gemfile

gem 'parallel_tests_report'

$ bundle install

Add the following to the Rakefile before load_task(In Rails application):

require 'parallel_tests_report'

Usage

  • add --format and --out option to .rspec or .rspec_parallel   - --format ParallelTestsReport::JsonFormatter --out tmp/test-results/rspec.json
  • execute the rake task after specs are executed   - bundle exec parallel_tests_report rake generate:report <TIME_LIMIT_IN_SECONDS> tmp/test-results/rspec.json   - <TIME_LIMIT_IN_SECONDS> is the maximum time an example can take. Default is 10 seconds.   - <OUTPUT_FILE> is the file specified in the --out option. Default is 'tmp/test-results/rspec.json'

This rake task can be configured to run after specs are executed in a continuous integration setup, it also produces a junit xml file for time limit exceeding check.