Red Nose Hacker

tdd

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

Guile Logo

I got into the habit of doing about 30 minutes of Code Kata every morning. I practice these Kata following the test-driven development (TDD) approach.

Guile distribution includes the SRFI-64 module: a unit testing framework. In this article, I explain how to use it and how to configure it in order to practice code kata.

Lire la suite...

Dans cette session...

Je me remet en jambe avant la rentrée avec un nouveau kata (l'intitulé est fourni en commentaire dans le code plus bas) ! Je cherche un moyen de rendre mes tests explicites ! Pour ce faire, je tente de combiner les symboles et les wildcards.

Lire la suite...

Le dernier test ajouté (et tous les autres) passent, place au réusinage ! Je me concentre dans cette session sur les tests.

Tu peux retrouver le code source du projet et autres croustillants détails sur son dépôt !

Bon screencast !

Lire la suite...

Objectif de cette session : Continuer d'utiliser un peu plus d'outils que Guile (Scheme) et Emacs mettent à disposition (Paredit, Geiser, AC-Geiser, SRFIs) pour améliorer mes compétences en développement logiciel.

Bon screencast !

Lire la suite...