# Filtering ZenTest's Autotest output: stack trace

**URL:** <https://www.ruby-forum.com/t/filtering-zentests-autotest-output-stack-trace/125538>\
**Category:** Rails\
**Created:** [January 9, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/filtering-zentests-autotest-output-stack-trace/125538 "2008-01-09T23:56:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harmon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f17d59/32.png) [@Harmon](https://www.ruby-forum.com/u/Harmon)\
**Post date:** [January 9, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/filtering-zentests-autotest-output-stack-trace/125538/1 "2008-01-09T23:56:15Z")

</div>

Is there anyway to prevent autotest from outputting the huge stack  
trace of failed tests? I just want the little “Your code railed at  
line 6 of user\_spec.rb” output…

I’m running Rspec 1.1.1 and RspecOnRails 1.1.1, with rails 2.0.2

---

<div class="post-metadata">

**Author:** ![Harmon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f17d59/32.png) [@Harmon](https://www.ruby-forum.com/u/Harmon)\
**Post date:** [January 9, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/filtering-zentests-autotest-output-stack-trace/125538/2 "2008-01-09T23:58:00Z")

</div>

The stack trace will help you one day, don’t get rid of it.

On Jan 10, 2008 9:25 AM, Harmon [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there anyway to prevent autotest from outputting the huge stack  
> trace of failed tests? I just want the little “Your code railed at  
> line 6 of user\_spec.rb” output…
> 
> I’m running Rspec 1.1.1 and RspecOnRails 1.1.1, with rails 2.0.2
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![Harmon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f17d59/32.png) [@Harmon](https://www.ruby-forum.com/u/Harmon)\
**Post date:** [January 10, 2008, 12:22am UTC](https://www.ruby-forum.com/t/filtering-zentests-autotest-output-stack-trace/125538/3 "2008-01-10T00:22:36Z")

</div>

I gotcha, but they are really long, and it’s hard for me to see what  
went wrong when i have 3+ fails. It would be nice to restrict the  
stack trace to 2 lines, because really all I need is the line in my  
spec that failed. I’ve seen a whole bunch of autotest demos where they  
actually print out the code that failed under the notification. I know  
the textmate bundle can do something like this, but I have windows,  
and I want to use the command line anyway for my autotesting. Any  
ideas?

---

<div class="post-metadata">

**Author:** ![Harmon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f17d59/32.png) [@Harmon](https://www.ruby-forum.com/u/Harmon)\
**Post date:** [January 10, 2008, 1:29am UTC](https://www.ruby-forum.com/t/filtering-zentests-autotest-output-stack-trace/125538/4 "2008-01-10T01:29:50Z")

</div>

On Jan 9, 3:22 pm, Harmon [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I gotcha, but they are really long, and it’s hard for me to see what  
> went wrong when i have 3+ fails. It would be nice to restrict the  
> stack trace to 2 lines, because really all I need is the line in my  
> spec that failed.

I’m working on autotest right now. That sounds like a useful option,  
if nothing else.

///ark
