+ All Categories
Home > Technology > From crappy and classy

From crappy and classy

Date post: 11-May-2015
Category:
Upload: gil-zilberfeld
View: 226 times
Download: 1 times
Share this document with a friend
Description:
Presented at ACCU 2012, This presentation accompanied adding features to CPPUnit test framework.
Popular Tags:
13
Gil Zilberfeld @gil_zilberfeld Http://www.gilzilberfeld.com From Crappy To Classy 28-Apr-12
Transcript
Page 1: From crappy and classy

Gil Zilberfeld

@gil_zilberfeldHttp://www.gilzilberfeld.com

From Crappy To Classy

28-Apr-12

Page 2: From crappy and classy

What we’re going to do today…

Page 3: From crappy and classy

CppUnit

Page 4: From crappy and classy

Task I

Add a filter by level to a test

Page 5: From crappy and classy

Part 1 – Open your eyes

What have got my self into?

Page 6: From crappy and classy

CppUnit Overview

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

Page 7: From crappy and classy

Part 2 – Use your hands

• Run the software • Build an example

Page 8: From crappy and classy

The setup

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

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

Page 9: From crappy and classy

Part 3 – Take a breather

• Read the instructions again

Page 10: From crappy and classy

Task I

Add a filter by level to a test

Page 11: From crappy and classy

Part 4 – Outside-In

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

• Add unit tests• Verify design decisions

Page 12: From crappy and classy

Task 2

Add filter level for a suite from a file

Page 13: From crappy and classy

Part 5 – Inside-Out

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


Recommended