Gradle has been my new pet interest lately… it gives me the out of the box power of maven and an awesome amount of control over my builds that I have only seen in rake and capistrano. Recently I’ve been day dreaming of an idea: a multi-module project setup containing a web application and a [...]
Archive for the ‘BDD’ Category
Revisiting Factorials in Scala
In my earlier post I showcased doing a simple factorial code kata using scala and today as I was driving home from work I was thinking… isn’t there some way to dynamically add methods to an object so that I can just write 10! and have it compute the factorial? The answer is yes, kind [...]
Scala Prime Factors Kata
So recently I started committing myself to understanding scala better and a perfect way of doing this is to start practicing different code katas in the language. So early this morning I started the day by doing the Prime Factors Kata in scala using specs to drive development and sbt to build run tests. The [...]
More On Test Doubles
For those of you who are attending my TDD class tonight, you’ll realize that I mentioned several times that learning to use test doubles effectively takes time… I’ve been using test doubles in my tests for half a decade and I still learn something new everytime. I’ve included some links to material to help you [...]
Mockito @Spy Annotation
In my previous post I went over some of the new annotations and annotation features available in Mockito with the 1.8.3 release and promised the following day I would post details on the @Spy annotation. Well, unfortunately practically a month has passed since then! But fear not, here is the overview of the @Spy annotation [...]
Presenting at Lambda Lounge This Thursday
I’ll be giving a presentation at Lambda Lounge this Thursday on Behavior Driven Development With Jspec. If you’re in the St.Louis area come on by and learn about BDD and how you can use it to drive your design. I’ll be using jspec to demonstrate how to build a functioning feature for a javascript library [...]
Running EasyB Specs From Gradle
Although the cookbook includes an example of using the easyb ant task to run specs and produce reports, I thought I’d try my hand at writing a task to manually run easyb specifications from the commandline. Here’s the result: task spec dir.eachFileMatch(~/.*\.specification/){spec-> arg(value:spec.absolutePath) } } } } } Now I can run “gradle spec” from [...]
TDD’ing Getters and Setters Considered Harmful
Over the past four years I have at various times over and over explained to my co-developers why writing tests against setters and getters is bad, dealt with the whole “metrics” argument, and quite frankly I start to get weary repeating myself every three months. While I was driving into work today, I started thinking [...]
On BDD: Unit Level Specifications
Earlier I spoke about specifications at the story level, now it’s time to explore them at the unit level. Story level examples explore how the feature in it’s entirety works, demanding code to be produced to make the example work… at the unit level, we apply the same concept, we provide examples that prove the [...]
Mockito for JVM 1.4 Released
For those of you who didn’t know, I’m currently contracted at a workplace that is still stuck using java 1.4 (I heard they might ring in 2010 by upgrading, but we’ll see). This has create a number of difficulties, chief amongst them (in my view) that I can’t use Mockito and most people use EasMock… [...]

