diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-15 22:11:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-15 22:11:55 +0000 |
commit | 7ed81c28e0a7f8a484f830724e2e7d16a1d9af6f (patch) | |
tree | 00dcf9cc1a38a12a5369ae6387d37b7f75ab058f /lib/test/unit | |
parent | 1eeaab8a39d704c465ad1f9fe8c67aed304ae5cc (diff) | |
download | ruby-7ed81c28e0a7f8a484f830724e2e7d16a1d9af6f.tar.gz |
lib/test/unit: refactoring puke
* lib/test/unit.rb (Test::Unit::Runner#puke): modify only result and
drop useless reports, not override entirely.
* lib/test/unit/parallel.rb (Test::Unit::Worker#_run_suite): report
unformatted results. formatting messages is not a workers task.
* lib/test/unit/parallel.rb (Test::Unit::Worker#puke): store raw
results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit')
-rw-r--r-- | lib/test/unit/parallel.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/test/unit/parallel.rb b/lib/test/unit/parallel.rb index 16f8861ae8..9e44b91187 100644 --- a/lib/test/unit/parallel.rb +++ b/lib/test/unit/parallel.rb @@ -25,7 +25,7 @@ module Test end def _run_suite(suite, type) - r = report.dup + @partial_report = [] orig_testout = MiniTest::Unit.output i,o = IO.pipe @@ -63,7 +63,8 @@ module Test end i.close - result << (report - r) + result << @partial_report + @partial_report = nil result << [@errors-e,@failures-f,@skips-s] result << ($: - @old_loadpath) result << suite.name @@ -144,6 +145,11 @@ module Test @stdout.close if @stdout end end + + def puke(klass, meth, e) + @partial_report << [klass.name, meth, e] + super + end end end end |