# Test::Unit Console Runner

**URL:** <https://www.ruby-forum.com/t/test-unit-console-runner/62683>\
**Category:** Ruby\
**Created:** [December 7, 2005, 8:22am UTC](https://www.ruby-forum.com/t/test-unit-console-runner/62683 "2005-12-07T08:22:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [December 7, 2005, 8:22am UTC](https://www.ruby-forum.com/t/test-unit-console-runner/62683/1 "2005-12-07T08:22:53Z")

</div>

Is there anyway to pass options to the (wonderful!) Test::Unit Console  
Runner to do things like increase verbosity:

- Print all passing tests
- Print all passing assertions

or decrease verbosity:

- Just the error message, and maybe a few lines of stack trace, but not  
the entire stack trace!

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [December 7, 2005, 8:40am UTC](https://www.ruby-forum.com/t/test-unit-console-runner/62683/2 "2005-12-07T08:40:59Z")

</div>

List R. schrieb:

> Is there anyway to pass options to the (wonderful!) Test::Unit Console  
> Runner to do things like increase verbosity:
> 
> - Print all passing tests
> - Print all passing assertions
> 
> or decrease verbosity:
> 
> - Just the error message, and maybe a few lines of stack trace, but not  
> the entire stack trace!

Looking at the output of “testrb -h” there seems to be no built-in way  
to increase verbosity, but there are some levels in the other direction:

-v, --verbose=[LEVEL] Set the output level (default is verbose).  
(s[ilent], p[rogress], n[ormal], v[erbose])

Regards,  
Pit

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [December 7, 2005, 9:50am UTC](https://www.ruby-forum.com/t/test-unit-console-runner/62683/3 "2005-12-07T09:50:12Z")

</div>

Also, if you take a look @ the same question when asked for the JUnit  
framework, the normal answer is that  
the most common method of passing arguments to tests is to use  
environment  
variables. Works for me.

j.

On 12/6/05, Pit C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Looking at the output of “testrb -h” there seems to be no built-in way  
> to increase verbosity, but there are some levels in the other direction:
> 
> -v, --verbose=[LEVEL] Set the output level (default is verbose).  
> (s[ilent], p[rogress], n[ormal], v[erbose])
> 
> Regards,  
> Pit

–  
“Remember. Understand. Believe. Yield! → [http://ruby-lang.org](http://ruby-lang.org)”

Jeff W.
