Category Archives: Test Driven Development

Code Coverage — a simple Rails example

My tests are my safety net. With them I can refactor with confidence, knowing that I’m keeping the functionality I intended. With them, I can grow my codebase, knowing that I’m not introducing regression errors. How do I have confidence that my safety net is good enough? One metric I can use to help with this […]

Also posted in Agile Software Development, Continuous Integration, Engineering, Quality Software, Rails, Ruby, Software Craftsmanship | Leave a comment

Getting Growl notifications from your Virtual Machine

As I develop I have Guard running in the background, executing my tests when things change. But I often don’t have the Terminal window front and centre, so I like to have Growl notifications for my test results. Setting up Growl to push notifications from the Virtual Machine to the host is a little tricky, so here’s a […]

Also posted in Agile Software Development, Engineering, Quality Software, Rails, Ruby, Software Craftsmanship | 1 Response

Using Spring with RSpec and Guard to speed up testing

In my last post I showed you how to setup Guard and RSpec so you can automatically run tests when things change. Now lets get things cooking on gas by using the Spring application preloader. This will mean that your app framework will only have to load once, and tests will be super zippy. Setting up […]

Also posted in Agile Software Development, Engineering, Rails, Ruby, Software Craftsmanship | Leave a comment

Getting Started with Guard and RSpec

"Detroit Publishing Co. - A Yeoman of the Guard (N.B. actually a Yeoman Warder), full restoration" by Adam Cuerden, Detroit Publishing Company - http://www.loc.gov/pictures/item/2002696943/. Licensed under Public domain via Wikimedia Commons - http://commons.wikimedia.org/wiki/File:Detroit_Publishing_Co._-_A_Yeoman_of_the_Guard_(N.B._actually_a_Yeoman_Warder),_full_restoration.jpg#mediaviewer/File:Detroit_Publishing_Co._-_A_Yeoman_of_the_Guard_(N.B._actually_a_Yeoman_Warder),_full_restoration.jpg

As I build out an application I want to ensure it’s behaving as I intend it. RSpec is a great framework for testing Ruby code, and is the tool I use most for my testing. But tests are pretty useless if you don’t run them, and rather than manually run tests when I change things, […]

Also posted in Agile Software Development, Engineering, Quality Software, Rails, Ruby, Software Craftsmanship | 3 Responses

Have you been hurt by code reuse? Learn from De Niro

Ever used someone else’s code; a library or sample app online? Ever got to a point where it’s been so mind-bendingly painful that you rue the day you ever found the stupid ‘library’ in the first place? If not then chances are you’re not a developer, you’re this guy, or you’re delusional. Spurred by a […]

Also posted in Quality Software, Software Craftsmanship | Leave a comment

FlexUnit eclipse plugin alpha

I’ve been kind of quiet recently for three reasons: Its summer Work has been insanely busy I’ve been beavering away on a new plugin for eclipse The plugin is designed with one key goal in mind: shortening the develop-test feedback loop. It integrates eclipse and the flexunit framework to make our lives as developers easier. […]

Also posted in Agile Software Development, Flash & Actionscript | 1 Response

CruiseControl on the Mac – modifying the build script to work x-platform

So, I thought I was doing pretty well, getting svn working on the mac, installing cruisecontrol for my continuous integration, even getting SCPlugin working with unsigned certificates. Then I tried to run my ant build, and ended up having all sorts of problems getting my mac debug player to run. Some investigating and help from […]

Also posted in Continuous Integration, Flash & Actionscript | Leave a comment

FlexUnit / ASUnit deathmatch results

As I mentioned a few posts ago, I am looking into how asunit and flexunit can fit into our continuous integration set up. The move into AS3 has given me an opportunity to reassess how the 2 frameworks fit my/our needs. The prior post set out the criteria I was testing against – here is […]

Also posted in Flash & Actionscript | Comments closed

FlexUnit UI factory

When I started looking into how we could use flexunit in our CI build, I was struck by how the UI is closely linked to the actual running of the test suite. I really wanted to be able to use the supplied flexunit GUI out of the box – after all, it does everything the […]

Also posted in Flash & Actionscript | Comments closed

FlexUnit for Cruise Control – XML output

If you read my earlier posts on Flex and continuous integration, you will remember that we had to do some work to get ASUnit to spit out its results in a manner that would be understood by Cruise Control. We built a log parser to parse results from the Flash players trace file into an […]

Also posted in Continuous Integration, Flash & Actionscript | Comments closed