Simpler test output with turn

Posted by Jason King 9 months ago

This is a small thing, but sometimes those small things can really make a huge difference. This is one of those.

As your suite of tests grow, especially in those large applications, you often end up with an error output that looks something like this:

..........F..............F.....E....FFF...F..........

And then following that is a huge list of error details. Scrolling through that is a pain, and even with redgreen active your visual cues are at a minimum when looking through that output.

Thankfully this also annoyed Tim Pease who came up with a very pleasant alternative called turn. You can install it as a gem, and then just add:

require 'turn'

Into your test helper and you’ll see much simpler and comprehensible output from your test output.

Tags: TestUnit, test
Hierarchy: previous, next

Comments

There are 0 comments on this post. Post yours →

Post a comment

Required fields look like this.

Markdown enabled. See the syntax rules for help.