Giter Site home page Giter Site logo

murex / mikado-testbuilders-kata Goto Github PK

View Code? Open in Web Editor NEW
35.0 8.0 22.0 5.8 MB

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.

Home Page: https://murex.github.io/mikado-testbuilders-kata/

License: MIT License

C++ 18.21% Java 16.20% C# 14.76% CMake 9.20% Shell 0.77% Batchfile 0.50% Kotlin 16.58% JavaScript 0.43% TypeScript 7.90% Scala 11.23% F# 4.22%
legacy-codebase kata mikado workshop java cpp testing test-builders tdd kotlin typescript

mikado-testbuilders-kata's Introduction

Mikado Method and Test Data Builders Kata

C++ Java - Gradle Java - Maven Kotlin Scala

A Code Retreat 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 or mob programming code retreat, 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 is this?

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 instructions are in the docs folder. It starts with Introduction.md

If you are willing to facilitate the session yourself, you might also have a look at the Facilitation Guide

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

Philippe
Philippe Bourgau
Ahmad
Ahmad Atwi
Christophe
Christophe Cadilhac
Damien
Damien Menanteau
Yoan
Yoan Thirion
AntoineMx/
AntoineMx
Pierrick
Pierrick Blons
R.
R. Madison Haynie

Start...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.