# Test::Unit messages

**URL:** <https://rubytalk.org/t/test-unit-messages/42986>\
**Category:** ruby-talk\
**Created:** [13 December 2007 16:05 UTC](https://rubytalk.org/t/test-unit-messages/42986 "2007-12-13T16:05:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidy1](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@aidy1](https://rubytalk.org/u/aidy1)\
**Post date:** [13 December 2007 16:05 UTC](https://rubytalk.org/t/test-unit-messages/42986/1 "2007-12-13T16:05:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tim\_Pease](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@Tim\_Pease](https://rubytalk.org/u/Tim_Pease)\
**Post date:** [13 December 2007 17:09 UTC](https://rubytalk.org/t/test-unit-messages/42986/2 "2007-12-13T17:09:55Z")

</div>

> 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

> **···**
>
> On Dec 13, 2007 9:05 AM, aidy \<aidy.lewis@googlemail.com\> wrote:
