# Test::Unit messages

**URL:** <https://www.ruby-forum.com/t/test-unit-messages/123046>\
**Category:** Ruby\
**Created:** [December 13, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/test-unit-messages/123046 "2007-12-13T17:07:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [December 13, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/test-unit-messages/123046/1 "2007-12-13T17:07:19Z")

</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:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [December 13, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/test-unit-messages/123046/2 "2007-12-13T18:13:54Z")

</div>

On Dec 13, 2007 9:05 AM, aidy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
