Testing Legacy Rails Code

Published March 7th, 2012 Under Unit Testing | Comments Off

Switching to Test-Driven Development (TDD) on an existing project without tests presents special challenges. Code could be a tangled mess of dependencies that defeats the very concept of unit testing. Or somebody attempted TDD in the past and you have a test suite that needs to be fixed before any new tests can be written. This video describes techniques that you can use to bootstrap a test-driven process into your project. Read more

Javascript Testing in Rails

Published November 1st, 2011 Under Unit Testing | Comments Off

This short tutorial explains how to use Jasmine to test JavaScript code in your Rails applications.

Learning TDD through Test-first Teaching

Published July 5th, 2010 Under Unit Testing | Comments Off

How to get started with TDD? Test-First Teaching is an innovative teaching approach that is gaining widespread adoption. Sarah Allen talks about how she teaches Ruby and Rails through a test-first approach. She demonstrates test-first teaching and then discuss how to turn the corner from simply making tests pass to how to use a test-first approach to software design.

Video Producer: East Bay Ruby Meetup Group

Railscasts – Model Versioning

Published February 5th, 2010 Under Configuration Management | Comments Off

If you need to keep track of a model’s history of changes and switch between versions, consider using the vestal_versions gem like I show in this episode.

http://railscasts.com/episodes/177-model-versioning

Don’t Mock Yourself Out

Published January 18th, 2010 Under Software Testing | Comments Off

Ask experienced Rails developers what they think about mock objects and some will say “absolutely awesome” while others “absolutely horrible.” The problem with both of those answers lies their “absolute”-ness. Used appropriately, mock objects are a powerful design tool that can lead to highly maintainable applications. Used in the wrong context or for the wrong reasons, they can lead to painfully brittle test suites that do little to maintain confidence in an application. In this talk, David Chelimsky will explore mock objects in the abstract and in the context of Rails.

Working Effectively with Legacy Rails Code

Published December 29th, 2009 Under Software Testing | Comments Off

Rails has powered Oakley.com, a site generating tens of millions of dollars in revenue for the past two years. It has 80 models, an equal number of controllers, 75k lines of code…and no tests. I will talk about how we’ve been chipping away at growing an effective, valuable test suite since I’ve come on with Oakley. How can we take a mass of untested code that runs our businesses, and start working to the ideal of high-quality, malleable, tested code, while still meeting the demands of high productivity in our daily work? My talk will get people thinking and talking about that process, and give them practical techniques for making it reality

http://scotland-on-rails.s3.amazonaws.com/2A03_PatMaddox-SOR.mp4

Scaling Rails – Episode #16 – Load Testing – Part 2

Published August 20th, 2009 Under Performance Testing | Comments Off

This is the second of two episodes where we learn the basics of Load Testing our web applications. In this episode we take a look at autobench, a tool that automates our httperf load tests, then we’ll figure out how to visualize our httperf results in a graph, and finally take a brief look at a few other Load Testing tools you might want to get familiar with.

http://railslab.newrelic.com/2009/06/23/episode-16-load-testing-part-2

keep looking »