No commit activity in last 3 years
No release in over 3 years
helper methods for working with parallel_tests. adds hooks and more user friendly boolean methods
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

 Project Readme

ParallelTests::Extensions

helper methods for working with parallel_tests

Installation

gem 'parallel_tests-extensions'

Usage

require 'parallel_tests'
require 'parallel_tests/extensions'

# Do something after tests complete
if ParallelTests.is_running?
  ParallelTests.after_tests { puts 'all done!' }
end

# Minitest only: Re-run any failed tests to see if 
# errors are transient
if ParallelTests.is_running?
  ParallelTests.after_tests do
    ParallelTests.retry_failed_tests
  end

  # Used to by each test process to log results
  require 'minitest/reporters/parallel_tests_reporter'
  Minitest::Reporters.use!(Minitest::Reporters::ParallelTestsReporter.new)
end