The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Running your tests automatically with autotest + wmii, emacs and ratpoison

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eigen Class

Posts: 358
Nickname: eigenclass
Registered: Oct, 2005

Eigenclass is a hardcore Ruby blog.
Running your tests automatically with autotest + wmii, emacs and ratpoison Posted: Dec 12, 2006 5:02 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eigen Class.
Original Post: Running your tests automatically with autotest + wmii, emacs and ratpoison
Feed Title: Eigenclass
Feed URL: http://feeds.feedburner.com/eigenclass
Feed Description: Ruby stuff --- trying to stay away from triviality.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eigen Class
Latest Posts From Eigenclass

Advertisement

Seeing the bar turn green is great for the morale; this is one of the several benefits of writing tests (even if you don't go fully TDD). Running tests manually can disrupt your workflow, though, so we're all using autotest to have our tests executed in the background continuously.

autotest includes a number of extensions to notify the result of the last tests in a non-intrusive manner, using growl, snarl, kdenotify... I'm using wmii (and my WM is fully scripted in Ruby), and it doesn't get less intrusive nor more readable than the bar:

autotest-wmii.png

And here's what the bar looks like when tests fail:

autotest-wmii-fail.png

I normally run autotest in a terminal right below/above the editor (in wmii's stacked mode), so when I want to read Test::Unit's messages I can switch quickly with Alt-j/k. My autotest extension also supports clicking on the button to see the messages or reset autotest, but there's no point in using the mouse anyway...

This snippet doesn't depend on ruby-wmii so it should run with the default wmiirc script. Just place this in ~/.autotest or #require it there:


Read more...

Read: Running your tests automatically with autotest + wmii, emacs and ratpoison

Topic: Ruby for PHP Programmers Previous Topic   Next Topic Topic: Ruby reaches number 11 on TIOBE

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use