Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/claremacrae/cpponsea2019

Code samples for my talk at C++ on Sea 2019
https://github.com/claremacrae/cpponsea2019

Last synced: about 1 month ago
JSON representation

Code samples for my talk at C++ on Sea 2019

Awesome Lists containing this project

README

        

# "Quickly Testing Legacy Code" at cpponsea2019

**Contents**

- [Introduction](#introduction)
- [About the talk](#about-the-talk)
- [ApprovalTests.cpp code samples](#approvaltestscpp-code-samples)
- [Corrections](#corrections)

## Introduction

Code samples and information for my talk "Quickly Testing Legacy Code" at [C++ on Sea 2019](https://cpponsea.uk/).

The samples here demonstrate use of [ApprovalTests.cpp](https://github.com/approvals/ApprovalTests.cpp), which is a new C++ implementation of Llewellyn Falco's [Approval Tests](http://approvaltests.com/) approach to testing legacy code.

## About the talk

* Abstract: [Quickly Testing Legacy Code](https://cpponsea.uk/sessions/quickly-testing-legacy-code.html)
* Video: [YouTube](https://youtu.be/dtm8V3TIB6k)
* Slides: [PowerPoint](https://www.slideshare.net/ClareMacrae/quickly-testing-legacy-code)
* Slides: [PDF](https://github.com/philsquared/cpponsea-slides/raw/master/2019/Clare%20Macrae%20-%20Quickly%20Testing%20Legacy%20Code.pdf)
* Code: [Github](https://github.com/claremacrae/cpponsea2019) (here)

## ApprovalTests.cpp code samples

Purpose of the sub-directories in this repo:

* [demo_approvals_and_catch2/](demo_approvals_and_catch2)
* Some example uses of [ApprovalTests.cpp](https://github.com/approvals/ApprovalTests.cpp) with the [Catch2 test framework](https://github.com/catchorg/Catch2), with detailed explanatory comments in the code.
* [demo_approvals_and_googletest/](demo_approvals_and_googletest)
* Some example uses of [ApprovalTests.cpp](https://github.com/approvals/ApprovalTests.cpp) with the [Google Test framework](https://github.com/google/googletest), with detailed explanatory comments in the code.
* [gilded_rose_refactoring_kata/](gilded_rose_refactoring_kata)
* A worked example of the [cpp version of Emily Bache's GildedRose Refactoring Kata](https://github.com/emilybache/GildedRose-Refactoring-Kata/tree/master/cpp)

## Corrections

See [Corrections](Corrections.md).