Justin
Justin

Reputation: 9791

C++ unit testing with Microsoft MFC

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?

Upvotes: 1

Views: 2214

Answers (3)

Fernando N.
Fernando N.

Reputation: 6439

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.

Upvotes: 1

Matthieu
Matthieu

Reputation: 2761

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

Upvotes: 1

Rob
Rob

Reputation: 78648

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

Upvotes: 1

Related Questions