Red Nose Hacker

tdd

Guile Logo

Previously :

In my last serie about building a testing framework à la xUnit left me with a weird feeling. Following Kent Beck's execution, from the book « Test Driven Development by Example », the exercise of thinking the Scheme way harder than I thought. I ended up with a shaky copy of the Python implementation. So I decided to let time passing by and come back to it to see what I can do differently. In the meantime, I watched a video of Andy Balaam where he showed a small illustration of the idea of Lambda Calculus and how it can be leveraged using a Scheme. That inspired me. Let's see how much, step by step…

Lire la suite...

Guile Logo

Previously :

The next item on the todo list: Run multiple tests. As we have written four tests since the beginning of this serie, speaking about suite is going to be handy.

Lire la suite...

Guile Logo

Previously :

The next item on the todo list: Report failed tests. The last chapter let the state of the test suite in a shaky state. Indeed, the last one is still red! According to Kent Beck, the following chapter is like going one step deeper to deal with a more specific – smaller grained – as he said. To ensure our learning base (the tests) is rock solid!

Lire la suite...

Guile Logo

Previously :

The next item on the todo list: Report collected results. So we are going to implement a reporting feature.

Lire la suite...

Guile Logo

Previously :

The next item on the todo list is Invoke tearDown afterward. But before doing this one, Kent wanted to take care of the order in which the procedures are called. This brings a new item : Log strings in WasRun.

So in this chapter we are going to implement a small logging system then the tearDown test fixture.

Lire la suite...

Guile Logo

Previously :

The next item on the todo list : Invoke setUp first

So here we will implement the test fixture usually called setup or beforeEach in other testing frameworks. It aims to execute code before any test function.

Let's see how it's done !

Lire la suite...

Guile Logo

Previously :

This first step, to an xUnit implementation, was pretty fun. You can taste it with the introductory sentence :

« Driving a testing tool using the testing tool itself to run the tests may seem a bit like performing brain surgery on yourself. »

Let's see how far can I push this adaptation in the Guile programming language.

Lire la suite...

Guile Logo

I like to write tests in a specification based fashion. So I started to work on Guile-Spec.

At the time of writing this post, it's no more than a set of syntax-rules on top of SRFI-64.

Let's see how it feels…

Lire la suite...

Guile Logo

I love Test Driven Development. You might already know it if you are following my journey. Kent Beck wrote the book in 2002. He has chosen to provide examples using Java and Python in an Object Oriented way.

Now, I want to use the Guile programming language to follow the examples in the book and see how things are different !

Lire la suite...

Guile Logo

J'ai pris l'habitude de faire environ 30 minutes de Code Kata chaque matin. Je pratique ces Kata suivant la méthode du développement dirigé par les tests (TDD).

Guile est distribué le module SRFI-64 : un framework de test unitaire. Dans cet article, je t'explique comment l'utiliser et comment le configurer.

Lire la suite...