Skip to content
A kata about testing bugs in legacy code without 3 weeks of feature freeze. Leveraging on the Mikado Method and the Test Data Builder pattern.
C++ Java
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
.gitignore Update .gitignore for VC++ files Aug 29, 2019
CONTRIBUTING.md
LICENSE.md
README.md
_config.yml Set theme jekyll-theme-cayman Feb 25, 2020
pom.xml Rename workshop/ to docs/ Jan 30, 2020
testbuilders-workshop.sln Add instructions to load the code Feb 26, 2020

README.md

Mikado Method and Test Data Builders Kata

A kata or a workshop to teach how to combine Test Data Builders and the Mikado Method to add tests on a bug in a legacy codebase without freezing features

Developers working on legacy code are always told to write tests before fixing any bug. In theory, it is very nice, but in practice, it is a lot more tricky!

We know we need to add tests, but it’s easier said than done.
In legacy codebase, just setting up the objects for the test is most often an unjustifiable nightmarish 2 weeks work. Mocks are a common workaround, but mocking legacy codebase usually makes them more difficult to change, not less!

In this hands-on pair programming dojo, you will learn how to combine the mikado method with test-data-builders to build a baby-step plan to add your first test to a legacy codebase. You will also learn how to draw a graph of nested test-data-builders so that you can instantiate test data, without mocks.

What this is

This repository contains some code and instructions to guide you through fixing and testing a bug in a legacy code base using test data builders and the mikado method.

The workshop is expected to last for 2 hours and 30 minutes.

When you are done, you should have a good enough understanding of the concept to start to use them in your daily work.

Who is this for?

If you are a developer dealing with legacy code, it might a good idea to practice this kata, alone or even better, with your team.

If you are a technical coach, you might host a session of this kata as a workshop with many developers.

Where to start

  • All kata instructions are in the docs folder. It starts with Introduction.md

License

The mikado-testbuilders-kata and the accompanying materials are made available under the terms of the MIT License (here) which accompanies this distribution, and is available at the Open Source site here

Contributors

  1. Ahmad Atwi
  2. Philippe Bourgau

Start...

You can’t perform that action at this time.