views:

266

answers:

3

Hey all,

I'm trying to convince my organization to start running unit tests on our C++ code. This is a two-part question:

  1. Any tips on convincing my employer that unit testing saves money in the long run? (They have a hard time justifying the immediate expenses.)

  2. I'm not familiar with any C++ testing frameworks that integrate well with MFC. Does anyone have experience with this, or use any general test harnesses that could be extended?

+1  A: 

I can answer the second question - the Boost Test framework can be used with MFC and someone has posted an excellent article about it on Code Project:

http://www.codeproject.com/KB/architecture/Designing_Robust_Objects.aspx

Rob
+1  A: 

Tut framework isn't bad and very clear.

For the first part of the question :

  1. Faster time to market
  2. Higher code quality
  3. More flexibility

Have a look here. It could be help you to find statements for

Matthieu
+1  A: 

Boost test is really complete, but a little cumbersome.

If you just want to make simple tests, spending as little time as possible, have a look at google test.

fnieto