1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib/active_support/testing
John Hawthorn 9fd02d181a Fail parallel tests if workers exit early
Previously, if a test worker exited early, the in-flight test it was
supposed to run wasn't reported as a failure.

If all workers exited immediately, this would be reported as ex.

    Finished in 1.708349s, 39.2192 runs/s, 79.0237 assertions/s.
    67 runs, 135 assertions, 0 failures, 0 errors, 2 skips

This commit validates that all workers finish running tests by ensuring
that the queue is empty after they exit. This works because we signal
the workers to exit by pushing nil onto the queue, so that there should
be a number of items left in the queue matching potentially missed
tests.
2019-05-30 21:34:47 -07:00
..
assertions.rb added tests for assert_no_difference with multiple expressions 2018-07-08 15:15:16 +02:00
autorun.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
constant_lookup.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
declarative.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
deprecation.rb Remove unused require "active_support/core_ext/regexp" 2018-07-29 14:51:00 +09:00
file_fixtures.rb Missing require "active_support/concern" 2018-10-30 10:17:09 +09:00
isolation.rb Ruby 2.4: take advantage of String#unpack1 2018-03-01 22:42:51 -08:00
method_call_assertions.rb Require Ruby 2.5 for Rails 6. 2018-12-19 21:47:50 +01:00
parallelization.rb Fail parallel tests if workers exit early 2019-05-30 21:34:47 -07:00
setup_and_teardown.rb SetupAndTeardown has few caveats that breaks libraries: 2018-04-27 01:36:27 -04:00
stream.rb Fix Style/RedundantReturn offenses 2018-04-21 13:23:42 -04:00
tagged_logging.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
time_helpers.rb Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00