[suggestion] rubyunit - filename + exception expected

Discussion in 'Ruby' started by Simon Strandgaard, Jun 27, 2003.

  1. 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 :)

    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' ?
     
    Simon Strandgaard, Jun 27, 2003
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.