Test::Unit messages

Discussion in 'Ruby' started by aidy, Dec 13, 2007.

  1. aidy

    aidy Guest

    Hi,

    I would like to add additional comments to the ouput of my unit
    tests.

    For example I would link to send a description of what the test is
    doing to the Test::Unit output which would then be included in the
    ci_reporter xml wrapper.

    I need this as I use assertions for my Watir GUI tests

    Cheers

    Aidy
    aidy, Dec 13, 2007
    #1
    1. Advertising

  2. aidy

    Tim Pease Guest

    On Dec 13, 2007 9:05 AM, aidy <> wrote:
    > Hi,
    >
    > I would like to add additional comments to the ouput of my unit
    > tests.
    >


    I know most of the assertions support adding a comment after the
    actual/expected values. That comment will get printed if the test
    fails.

    assert(false, "this assertion will fail")


    > For example I would link to send a description of what the test is
    > doing to the Test::Unit output which would then be included in the
    > ci_reporter xml wrapper.
    >


    I've never used the ci_reporter xml wrapper. You might have to hack
    through that class on your own to get the text output you need
    (provided it does not already do that).

    Blessings,
    TwP
    Tim Pease, Dec 13, 2007
    #2
    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. VvanN
    Replies:
    5
    Views:
    487
    Phlip
    Apr 28, 2006
  2. Bill David
    Replies:
    2
    Views:
    270
    Arne Vajhøj
    Jun 18, 2008
  3. Daniel Schierbeck

    [Test::Unit] Asserting exception messages?

    Daniel Schierbeck, Feb 16, 2007, in forum: Ruby
    Replies:
    2
    Views:
    99
    Daniel Schierbeck
    Feb 17, 2007
  4. Curt Sampson
    Replies:
    3
    Views:
    115
    Phlip
    Aug 11, 2007
  5. timr
    Replies:
    2
    Views:
    164
Loading...

Share This Page