The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
TDDMate

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
Florian Weber

Posts: 94
Nickname: csshsh
Registered: Feb, 2005

Florian Weber is freelance developer from Hamburg, Germany
TDDMate Posted: Jan 12, 2006 4:32 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Florian Weber.
Original Post: TDDMate
Feed Title: Oakland Cutlery
Feed URL: http://blog.oaklandcutlery.com/wp-rss2.php
Feed Description: Ruby, Rails, Interface Design
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Florian Weber
Latest Posts From Oakland Cutlery

Advertisement

It took longer than expected, but I finally took the time to work more on the testing script, I wrote about a while ago.

No more waiting for the Rails environment to start up, when you want to run a test quickly.. and you get pretty HTML output. Check out a screencast of it.

It’s still in a very early stage and I’m sure there still a lot of bugs. But anyways, you can give it a try and install it via rubygems:

sudo gem install --source http://dist.oaklandcutlery.com tddmate

Installing the TextMate bundle

The TextMate bundle for it is shipped as part of the gem. To install it simply do:

open `gem env gemdir`/gems/tddmate-0.1/textmate/TDDMate.tmbundle


Running tests faster via DRb

If you want to run tests with the client/server scripts, to avoid the startup time of the Rails environment, you gotta change your tests to load your controllers with require_dependency instead of require.


Example. Instead of having:

require File.dirname(__FILE__) + '/../test_helper'
require 'foo_controller'

# Re-raise errors caught by the controller.
class FooController; def rescue_action(e) raise e end; end

you need to change it to:
require File.dirname(__FILE__) + '/../test_helper'
require_dependency 'foo_controller'

# Re-raise errors caught by the controller.
class FooController; def rescue_action(e) raise e end; end


Read: TDDMate

Topic: A Ruby challenge: defuse the code bomb and test your Ruby fu Previous Topic   Next Topic Topic: Why high-level programming language

Sponsored Links



Google
  Web Artima.com   

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