Autotest and BetaBrite 3

Posted by Aaron Patterson on February 11, 2008

I've finally added USB betabrite support to my Betabrite library, and released version 1.0.0.

Version 1.0.0 also includes an autotest module so that you can see your autotest output on the sign. Here is what mine looks like:

Betabrite Autotest

The sign shows errors too, but it scrolls, so I couldn't get it in one picture. Anyway, if you've got the USB sign, all you have to do to get it working with autotest is add this to your .autotest file:

require 'betabrite/autotest'
require 'usb'

Autotest::BetaBrite.hook(BetaBrite::USB)

The hook method takes a block, and you can modify your messages before they are sent to the sign. For example, I wanted my failures to be blue, so my .autotest file looks like this:

require 'betabrite/autotest'
require 'usb'

Autotest::BetaBrite.hook(BetaBrite::USB) do |failures, erorrs|
  failures.rgb('0000FF') if failures.green?
end

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. Zach Inglis Tue, 12 Feb 2008 13:55:52 PST

    Is it wrong that I find that really awesome?

  2. John Schult Fri, 28 Mar 2008 10:44:35 PDT

    Does it work with the Betabrite Prism?

  3. Aaron Patterson Fri, 28 Mar 2008 14:41:15 PDT

    Yes

Comments

Check Spelling
Activate Spell Check while Typing