Skip to content

Introduction to Test Driven Development in C++ plus Coding Kata together

Photo of Jacob Mossberg
Hosted By
Jacob M. and 3 others
Introduction to Test Driven Development in C++ plus Coding Kata together

Details

We will listen to a short introduction on how to do Test Driven Development (TDD) in C++ using Google Test. After that we will make a Coding Kata together to practice TDD.

Everyone must bring their own laptop. But we encourage people on working together when doing the Kata.

We will do the Tennis Kata using Google Test as unit test framework. The following github repository contains more information about the Tennis Kata and also a boilerplate project that can be used as a starting point for the kata.

https://github.com/jmossberg/tenniskatacpp

Please drop me a message if you find any problem with the repository.

I have prepared a Lubuntu virtual machine if you don't have the tool chain installed on your computer. It comes with Lubuntu 16.10, g++, gcc, cmake, make and Eclipse CDT 4.6.

  1. Download and install https://www.virtualbox.org/

  2. Download Lubuntu.ova from my Dropbox (the link might stop working if too many use it). The file is ~3GB: https://dl.dropboxusercontent.com/u/12548927/Lubuntu.ova

  3. Start VirtualBox

  4. Select File - Import Appliance...

  5. Select the file you downloaded from Dropbox, i.e. Lubuntu.ova

  6. Complete Import wizard in VirtualBox

  7. Start the Lubuntu virtual machine

  8. Start Eclipse CDT via link on the Desktop

  9. Follow instructions at https://github.com/jmossberg/tenniskatacpp

//Jacob Mossberg

Photo of GbgCpp - Gothenburg C++ Meetup group
GbgCpp - Gothenburg C++ Meetup
See more events