[#21736] OBJECTDAY 2000 — 助田 雅紀 <masaki.suketa@...>

助田です.

29 messages 2000/04/03
[#21748] Re: OBJECTDAY 2000 — keiju@... (石塚圭樹) 2000/04/04

けいじゅ@日本ラショナルソフトウェアです.

[#21753] Re: OBJECTDAY 2000 — Hideto ISHIBASHI <hideto-i@...4u.or.jp> 2000/04/05

石橋秀仁です。

[#21755] Re: OBJECTDAY 2000 — keiju@... (石塚圭樹) 2000/04/05

けいじゅ@日本ラショナルソフトウェアです.

[#21837] site_ruby & Linux distribution — OZAWA Sakuro <crouton@...>

小澤さくです。

14 messages 2000/04/10

[#21922] ruby-1.4.4 binary for BeOS 5 (Intel) — tenmei@... (Noriaki Harada)

はらだです。

23 messages 2000/04/15
[#21923] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — NAITOH Jun <naitoh@...> 2000/04/15

はじめまして、内藤と申します。

[#21926] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — tenmei@... (Noriaki Harada) 2000/04/16

>はじめまして、内藤と申します。

[#21930] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — NAITOH Jun <naitoh@...> 2000/04/16

内藤です。

[#21968] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — Katsuyuki Komatsu <komatsu@...> 2000/04/17

小松です。

[#21969] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — NAITOH Jun <naitoh@...> 2000/04/17

再び内藤です。

[#21956] Thread & STDIN — Masato Toyoshima <mt@...>

はじめまして、豊島といいます。

16 messages 2000/04/17

[#21981] rd2man — WATANABE Hirofumi <eban@...>

わたなべです.

29 messages 2000/04/18
[#21982] Re: rd2man — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/04/18

Toshです。

[#21985] Re: rd2man — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/04/19

わたなべです.

[#22036] Re: rd2man — Wakou Aoyama <wakou@...> 2000/04/20

青山です。

[#22040] Re: rd2man — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/04/21

Toshです。

[#22014] shell interactive — WATANABE Daisaku <dwata@...3.rim.or.jp>

31 messages 2000/04/20
[#22016] Re: shell interactive — 時田幸粋 <ktokita@...> 2000/04/20

こんにちは、時田です。

[#22017] Re: shell interactive — nobu.nakada@... 2000/04/20

なかだです。

[#22018] Re: shell interactive — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/04/20

わたなべです.

[#22027] Re: shell interactive — 時田幸粋 <ktokita@...> 2000/04/20

こんにちは、時田です。

[#22103] Please put ruby-1.4.4.tar.gz in pub/lang/ruby/1.4/ — "Akinori -Aki- MUSHA" <knu@...>

 お願いがあるのですが、 ruby-1.4.4.tar.gz を FTP ツリーの 1.4/

16 messages 2000/04/25
[#22199] Where to put ruby-i.j.k.tar.gz on? (Re: ) — SUGIHARA Hiroshi <maili31s@...> 2000/04/28

[ruby-list:22103]におきまして、2000/04/25 12:38ほどに、

[#22117] StateGraph: state machine interpreter — Hideto ISHIBASHI <hideto-i@...4u.or.jp>

石橋 "rubyholic" 秀仁です。

16 messages 2000/04/25

[#22159] $LOAD_PATH への追加について — "Sugawara Hajime" <sugawara@...>

 はじめまして、菅原@ホビー・データです。

13 messages 2000/04/27

[#22181] Can't Use optparse — Yamada Kenji <kyamada@...>

28 messages 2000/04/28
[#22186] Re: Can't Use optparse — akira yamada / やまだあきら <akira@...> 2000/04/28

[#22195] Re: Can't Use optparse — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/04/28

Toshです。

[#22261] Re: Can't Use optparse — nobu.nakada@... 2000/05/04

なかだです。

[#22264] Re: Can't Use optparse — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/05/04

Toshです。

[#22270] Re: Can't Use optparse — nobu.nakada@... 2000/05/04

なかだです。

[#22272] Re: Can't Use optparse — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/05/04

Toshです。

[#22300] Re: Can't Use optparse — Koji Arai <JCA02266@...> 2000/05/05

新井です。

[ruby-list:21745] RubyUnit 'runit/cui/testrunner.rb' patch

From: Hideto ISHIBASHI <hideto-i@...4u.or.jp>
Date: 2000-04-03 14:56:42 UTC
List: ruby-list #21745
石橋秀仁です。

RubyUnitを使っています。とても便利です。

ただ、標準の'runit/cui/testrunner.rb'は、例外(error, failure)
のコールスタックを全部出力してくれません。このため、
デバッグのときに少し困っていました。

そこで、コールスタックを全て出力しようと、なんとなくtestrunner.rbを
書きかえたら、RubyUnit自身の内部的な呼び出し情報が大量に出力されて
しまいました。つまり、もっと見づらくなりました (^^;

というわけで、
 * RubyUnitの内部的なコールは出力しない
 * Rubyインタープリタの例外終了時と同じフォーマットで出力
するパッチを書きましたので、添付します。

# 最新版は0.0.4でしたっけ?これは0.0.3用です。

diff -cr ../contrib/rubyunit-0.0.3/runit/cui/testrunner.rb runit/cui/testrunner.rb
*** ../contrib/rubyunit-0.0.3/runit/cui/testrunner.rb	Sat Jan 22 00:00:00 2000
--- runit/cui/testrunner.rb	Mon Apr  3 21:26:10 2000
***************
*** 91,104 ****
      def print_failures(result)
        @io.puts "Failures: #{result.failure_size}" if result.failure_size > 0
        result.failures.each do |f|
!         @io.puts f
        end
      end
    
      def print_errors(result)
        @io.puts "Errors: #{result.error_size}" if result.error_size > 0
        result.errors.each do |e|
!         @io.puts e
        end
      end
    end
--- 91,120 ----
      def print_failures(result)
        @io.puts "Failures: #{result.failure_size}" if result.failure_size > 0
        result.failures.each do |f|
!         @io.print f.at[0], ": ", f.err, " (", f.err.type, ")\n"
!         for at in f.at[1..-1]
!           file = at.split(":")[0]
!           for loadpath in $:
!             match = true if file =~ "^#{loadpath}/runit/"
!           end
!           next if match
!           @io.print "\tfrom ", at, "\n"
!         end
        end
      end
    
      def print_errors(result)
        @io.puts "Errors: #{result.error_size}" if result.error_size > 0
        result.errors.each do |e|
!         @io.print e.at[0], ": ", e.err, " (", e.err.type, ")\n"
!         for at in e.at[1..-1]
!           file = at.split(":")[0]
!           for loadpath in $:
!             match = true if file =~ "^#{loadpath}/runit/"
!           end
!           next if match
!           @io.print "\tfrom ", at, "\n"
!         end
        end
      end
    end

--
Hideto "rubyholic" ISHIBASHI

In This Thread

Prev Next