Skip to content

{ Tag Archives } UnitTesting

MsBuild execution of SoapUI testrunner

I have just been writing an msbuild runner to wrap testrunner for soapUI. Here it is. There are a couple of techniques to note: stacking the args for the commandline in an ItemGroup (see thanks below) don’t forget to Html Escape quots when invoking command line ie &quot I also dependency check for each And [...]

Also tagged ,

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 , , , , , , , , , , , , , , ,

Configuration DSL – Part III: Writing a Fluent Interface for Configuration in C#

This is the third entry on creating configuration DSLs in C#. The previous entry looked at the implementation. The basis of this code is to solve the problem that there are multiple configurations an application may require: development, test and moving through environments up to production. This solution makes the distinction that there are profiles [...]

Also tagged , , , , ,

Configuration DSL – Part II: Writing a Fluent Interface for Configuration in C#

This is the second entry on creating configuration DSLs in C#. The previous entry looked at the design of the interface. This one looks at the implementation. Just a small note that the configurator does not use an IoC container to solve the problem of dependency injection. Separating out settings from values: the configurator and [...]

Also tagged , , , , ,

DSL – Part I: Writing a Fluent Interface for Configuration in C#

I spent the weekend writing a configuration domain specific language (DSL) for a client interface. This interface was lifted from TopShelf project on codeplex after listening to podcast on MassTransit. It was all pretty straightforward and expected as you would imagine. I want to document for myself the process of setting one up for the [...]

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 , , , , ,