New Articles
from around the Web
-
Code Between Lines: A RSpec matcher for ActiveRecord validation
Handy matchers to make checking for Active Record errors in specs even easier.
-
Cookin' with Ruby on Rails - Integration Tests
Tutorial on writing Integration Tests using Rails 1.2.6 (though still useful for Rails 2).
-
Autotest with verbose flag on
Hints on how to configure ZenTest’s autotest to be less verbose on various messages and other configuration suggestions.
-
autotest-rails
Autotest runs continuously and watches for files to change (when you save). It then runs any associated tests automatically.
-
Introduction to Test Driven Design (TDD)
An essay that explains what Test Driven Development is, how it works, and various myths and misunderstandings about TDD.
-
15 TDD steps to create a Rails application
A simple tutorial that gives the flavor of using Test Driven Development in a basic Rails application.
-
Be Dee Dee and Me
Nice general overview of Behavior Driven Development (BDD), the tools available (test/spec, rSpec), and then an introduction to actually using test/spec within your code.
- A Guide to Testing the Rails (Controllers)
- RailsConf Live Notes: Testing Tutorial
- rcov Rake Task
- A Guide to Testing the Rails (Unit Testing)
Related Books
Working Effectively with Legacy Code
Robert C. Martin Series
A detailed examination of strategies to work with large code bases that may be largely untested, legacy code. Discusses refactoring, unit...
List: $56.99 Amazon price: $44.45 Buy
Fit for Developing Software
: Framework for Integrated Tests (Robert C. Martin Series)
Introduces the Fit open source framework which focuses on a simple way to specify business rules, express them with concrete examples, an...
List: $54.99 Amazon price: $48.02 Buy
Test Driven Development
By Example
Kent Beck's book was one of the early discussions of TDD and while it doesn't use Ruby (it is in Java), it provides an easy step by step ...
List: $44.99 Amazon price: $35.09 Buy
Links by Type
Documentation (10)
- RailsLodge - Rathole plugin
Rathole is a fixtures oriented Ruby on Rails plugin that makes working with foreign key relationships much easier. It also removes the need for separate join table fixture files. Rathole is available for Rails 1.2.x and is now part of the official Rails 2.x distribution. - RSpec Homepage
RSpec is a Behaviour Driven Development framework for Ruby. It provides two frameworks for writing and executing examples of how your Ruby application should behave: a Story Framework for describing behaviour at the application level; and a Spec Framework for describing behaviour at the object level. - Rails Cache Test Plugin
The cache test plugin adds assertions to Test::Units::TestCase to check for cached and expired pages, actions and fragments in your tests. - the fabulous spider fuzz plugin
SpiderTest is an automated integration-testing script that iterates over every page in your application. - test/spec, a BDD interface for Test::Unit
test/spec layers an RSpec-inspired interface on top of Test::Unit, so you can mix TDD and BDD (Behavior-Driven Development). - test/spec Official Documentation
test/spec layers an RSpec-inspired interface on top of Test::Unit, so you can mix TDD and BDD (Behavior-Driven Development). - test/spec RubyForge Home Page
Official RubyForge home page for project. - Watir - Overview
Watir is a simple open-source library for automating web browsers. It allows you to write tests that are easy to read and easy to maintain. It is optimized for simplicity and flexibility. - Bleak House
Memory leak detection - APIdoc
Rails Doc morphed into APIdock. Collects various versions of Rails, Ruby, and Rspec documentation into one place.
Events (1)
- Test-Driven Development with Rails
Three-day seminar in Columbus, OH on using test-driven development for Rails applications. Dates: 10/17/07– 10/19/07
Screencasts (12)
- Railscasts - Testing without Fixtures
- Railscasts - Refactoring User Name Part 3
- Railscasts - Refactoring User Name Part 2
- Railscasts - Testing Controllers
- rSpec Mocks and Models
- rSpec Basics
- RSpec User Stories
- rSpec Controllers and Tools
- Test-First Development for Rails
- Agile Development Screencasts
- evang.eli.st Story Runner top to bottom screencast
- Railscasts - Fixtures in Rails 2.0
Software (9)
- CruiseControl.rb
Open-source continuous integration software for Ruby applications. - Mocha
Official Mocha Readme - Flex Mock
FlexMock is a simple, but flexible, mock object library for Ruby unit testing that integrates easily with Test::Unit. - Opera Dragonfly
Browser Debugging tool (like Firebug), but runs on any device that Opera runs on. - Firebug - Web Development Evolved
Comprehensive debugging and in-browser development tool for Firefox. - Selenium on Rails
Plugin that simplifies the use of Selenium for testing Rails applications. - ZenTest: Automated test scaffolding for Ruby
The ZenTest collection includes a full test coverage suite of tools (including the extremely useful autotest). - tarantula
Ruby on Rails plugin that crawls your site, exercising all the URLs and checking things as it crawls along. - eigenclass - rcov: code coverage for Ruby
Presentation Slides (1)
Top Blogs
Sorry, no relevant blogs yet.
Have one to suggest? Enter in the form on the right.