Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arfl-redgreen

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arfl-redgreen

  • 0.1.5
  • Rubygems
  • Socket score

Version published
Maintainers
3
Created
Source

kule-redgreen

kule-redgreen is a fork of Pat Eyler's & Chris Wanstrath's RedGreen.

I had problems with autotest only running once and then stopping (rather than continuously testing new updates).

This version works using ZenTest 4.0.0 on XP & Vista.

Install the gem

gem install kule-redgreen -s http://gems.github.com

NB. Don't forget to uninstall the old redgreen gem if you are using it:

gem uninstall redgreen

Autotest & Snarl Setup

See here to set up your windows environment: http://thewebfellas.com/blog/2007/12/10/rspec-autotest-and-snarl-on-windows

In your .autotest file you just need the following (used for tests/shoulda):

require 'autotest/snarl'
require 'Win32/Console/ANSI'
require 'redgreen/autotest'

Snarl Issue (Tests always Pass)

Currently to allow Snarl to work with ZenTest 4.0.0 you need to modify autotest.rb file
(Usually: C:\Ruby\lib\ruby\gems\1.8\gems\ZenTest-4.0.0\lib\ ):

Change this line: self.failed_results_re = /^\s+\d+) (?:Failure|Error):\n(.?)((.?))/

To: self.failed_results_re = /^\s+\d+) (?:\e[\d+m)?(?:Failure|Error)(?:\e[0m)?:\n(.?)((.?))/

This then allows the regular expression to ignore the colour escape codes and it picks up the correct amount of failures.

FYI I'll pop an email over to the ZenTest guys to see if they are okay to make this change.

Other Minor Changes

Changed the colour scheme from foreground to background colours as I find it a little easier on the eyes!

Luke Pearce
http://www.kulesolutions.com

Previous README comments:

Use it as you would the ruby interpreter when running your unit test.

Like so:

rg test/test_units.rb

Relevant bloggings:

Enjoy.

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc