//- Copyright (c) 2008-2016 James Grenning --- All rights reserved //- The exercises are provided exclusive use by participants in //- Wingman Software training with course code //- web-24 //- Cannot be used by attendees to train others without written permission. //- www.wingman-sw.com james@wingman-sw.com This zip file contains exercise code and some complete and partial solutions. -------------- For GCC users: -------------- 1) Download CppUTest from cpputest.org. You'll find documentaion there too. Note: DO NOT USE THE cpputest.org build instructions. 2) Build cpputest with these steps from a bash shell: Note: the cpputest build instructions on cpputest.org are slightly different than the instructions to build it with my example code. cd /path/to/cpputest autoreconf . -i ./configure make tdd 3) Define the CPPUTEST_HOME environment variable export CPPUTEST_HOME=/path/to/cpputest 4) Build all the exercises by running this command from a bash shell: ./make-exercises.sh If you get warnings, you may have to adjust the compiler flags for your version of gcc. You can add or remove flags from PlatformCompilerFlags.mk. Just follow the pattern. It is usually easy to turn off specific warnings. The error message will have text like this identifying the warnign that was triggered: [-Wreserved-id-macro] To turn that warning off, you would add this line to PlatformCompilerFlags.mk: CPPUTEST_WARNINGFLAGS += -Wno-reserved-id-macro 5) Example of building one exercise at a time: cd tdd-c/CircularBuffer make ----------------- For Visual Studio ----------------- 1) Build CppUTest for your version of Visual Studio 2) Run its tests 3) Define CPPUTEST_HOME environment variable - point it to the root of CppUTest 4) Restart Visual Studio - Create a console app for each test runner project - Your test runner app needs the same settings as CppUTest - Add the C and CPP files in the exercise folder to your test runner app - Link with CppUTest's library If you need help, please refer to cpputest.org or the cpputest google group.