Problem with displaying command line outputs

Discussion in 'Ruby' started by John Smith, Apr 15, 2011.

  1. John Smith

    John Smith Guest

    I am trying to run some tests, which utilize test::unit. Aside from the
    typical assertions that generate dots, F/E and error messages, there are
    some puts text that should be displayed too. This works fine when
    running my test files (ie. test1.rb) one at a time from a command line.

    However, when I run multiple tests in the same directory from one file,
    which is either another .rb file that just runs each test one after
    another through the ruby command, or optionally, I have set up a rake
    file that iterates through everything, I get no output on the command
    line. The tests do run for sure, but I would like to see all the output
    as if I were running each test individually. Is there a way to force the
    output to display?

    Thanks in advance!

    --
    Posted via http://www.ruby-forum.com/.
    John Smith, Apr 15, 2011
    #1
    1. Advertising

  2. John Smith

    John Smith Guest

    I tried a few more approaches, but they don't work either. I have an .rb
    file that just requires all the other .rb files, but the problem is, I
    can't run tests by passing command line arguments that way.
    Any suggestions? Thanks again!

    --
    Posted via http://www.ruby-forum.com/.
    John Smith, Apr 20, 2011
    #2
    1. Advertising

  3. John Smith

    jake kaiden Guest

    jake kaiden, Apr 20, 2011
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lucas Cowald
    Replies:
    4
    Views:
    1,036
    Tohid
    Oct 23, 2003
  2. Bernd Oninger
    Replies:
    1
    Views:
    776
    Martin Honnen
    Jul 7, 2004
  3. WStoreyII

    read line function outputs weird results

    WStoreyII, Feb 14, 2007, in forum: C Programming
    Replies:
    14
    Views:
    543
    CBFalconer
    Feb 15, 2007
  4. JonathanB
    Replies:
    8
    Views:
    273
    JonathanB
    Mar 31, 2009
  5. Dib Urim
    Replies:
    4
    Views:
    185
    Michele Dondi
    Dec 3, 2003
Loading...

Share This Page