[suggestion] rubyunit - filename + exception expected

S

Simon Strandgaard

using the Rubyunit distributed with Ruby-1.8.0-preview3.

I have an 'assert_exception' that fails.. ok.

The filename rubyunit(test::unit) is outputting is annoying.
Wouldn't it be an idea to output the file in which the problem actual is
located in ?

Yes I know I could use grep :)

ruby test_all.rb
Loaded suite Unnamed TestSuite
Started
test_all.rb: unrecognized option `--badbadbad'
...........F...............................................................
...........................................................................
...........................................................................
........................................................
Finished in 1.14403 seconds.

1) Failure!!!
TestBuffer#test_joinline3 [/home/neoneye/stow/ruby18_r3/lib/ruby/1.8/runit/assert.rb:56]:
<BufferTop> exception expected but none was thrown

277 tests, 948 assertions, 1 failures, 0 errors
BTW: at some time I think I will convert the code to 'test::unit' ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top