From crappy and classy

Preview:

DESCRIPTION

Presented at ACCU 2012, This presentation accompanied adding features to CPPUnit test framework.

Citation preview

Gil Zilberfeld

@gil_zilberfeldHttp://www.gilzilberfeld.com

From Crappy To Classy

28-Apr-12

What we’re going to do today…

CppUnit

Task I

Add a filter by level to a test

Part 1 – Open your eyes

What have got my self into?

CppUnit Overview

• Test frameworks include• Test identifiers• Test runner• Assert APIs

Part 2 – Use your hands

• Run the software • Build an example

The setup

• Visual Studio 11 • CppUnit project• Integration test project• CppUnit

• Unit test project• Google Test• Typemock Isolator++

Part 3 – Take a breather

• Read the instructions again

Task I

Add a filter by level to a test

Part 4 – Outside-In

• Write an integration test • Hack it ‘til you make it• Document design decisions

• Add unit tests• Verify design decisions

Task 2

Add filter level for a suite from a file

Part 5 – Inside-Out

• Write unit tests• Add a class• Write an integration test