зеркало из https://github.com/github/ruby.git
Inform failures in parallel tests before retrying
Displays for each failure which test it actually occurred in. The output destination follows the --{stdout,stderr}-on-failure option.
This commit is contained in:
Родитель
51e32523c2
Коммит
114c0b71be
|
@ -716,7 +716,15 @@ module Test
|
|||
del_status_line or puts
|
||||
error, suites = suites.partition {|r| r[:error]}
|
||||
unless suites.empty?
|
||||
puts "\n""Retrying..."
|
||||
puts "\n"
|
||||
@failed_output.puts "Failed tests:"
|
||||
suites.each {|r|
|
||||
r[:report].each {|c, m, e|
|
||||
@failed_output.puts "#{c}##{m}: #{e&.class}: #{e&.message&.slice(/\A.*/)}"
|
||||
}
|
||||
}
|
||||
@failed_output.puts "\n"
|
||||
puts "Retrying..."
|
||||
@verbose = options[:verbose]
|
||||
suites.map! {|r| ::Object.const_get(r[:testcase])}
|
||||
_run_suites(suites, type)
|
||||
|
|
Загрузка…
Ссылка в новой задаче