Skip to content

{ Tag Archives } BDD

Object Mothers as Fakes

This is a follow to Fakes Arent Object Mothers Or Test Builders. Over the last few weeks I have had the chance to reengage with MO and fakes. I am going to document a helper or two with building fakes using extensions. But before that I want to make an observation or two: I have [...]

Also tagged , , , , , , , , , , , , , , ,

Creating a restful-resources application in rails

I am creating a rails application and I haven’t used rails in 2 years and, of course, version 2.2.2. So I thought that I had better record my major steps. I also needed to learn how to use rspec with rails (rather than the unit tests). Update all the gems gem update Install the plugins [...]

Also tagged ,

Fakes Arent Object Mothers Or Test Builders

Fakes are not Object Mothers or Test Data Builders and Extensions are a bridge to aid BDD through StoryQ I’ve just spent the week at Agile2008 and have had it pointed out to me that I have been using Fakes as nomenclature when in fact it is an Object Mother pattern. So I have set [...]

Also tagged , , , , , , , , , , , , , , ,

jQuery and testing — JSUnit, QUnit, JsSpec [Part 2]

Trying QUnit with jQuery In the JSUnit entry, one of the main problems was with the sequencing of calls. Let’s see how QUnit handles this. QUnit has a simple implementation to this problem: stop() and start() commands to synchronise sequences. The basic approach is that it calls a test function. With the stop() command, it [...]

Also tagged , , , , ,

jQuery and testing – JSUnit, QUnit, JsSpec [Part 1]

Trying JsUnit with JQuery I have started first with JSUnit because it is tried and true (and to tell the truth I thought it would be fine and didn’t bother with a quick search for alternatives). For the impatient, I won’t be going with JSUnit and here are some reasons: the problem is that the [...]

Also tagged , , , , ,

jQuery and testing – JSUnit, QUnit, JsSpec [Part 3]

Trying JsSpec with jQuery This is part three of three. The previous two have been focussed around managing the problem of timing: JSUnit got too hard and QUnit is easy but you still have to manage timings yourself. With JsSpec there is no problem because it is all managed for you. Nice work! Here’s the [...]

Also tagged , , , , ,

jQuery and testing – JSUnit, QUnit, JsSpec [Introduction]

I had been writing a jQuery parser and then realised once I had spiked it that I hadn’t actually written any tests. So, these are some results from a spike in unit testing a jQuery plugin. Some background, the plugin is a results viewer from an xml feed from storyq. So, I have run some [...]

Also tagged , , , , ,