Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Any (free) Unit testing frame work for MFC code?

Any (free) Unit testing frame work for MFC code?

Scheduled Pinned Locked Moved C / C++ / MFC
c++testingbeta-testinghelpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pk jain
    wrote on last edited by
    #1

    Hi, I have a application developed in VC++(MFC).Its a MDI application.I am very new to Unit testing. So i need to use a Unit testing framework\tool for it's unit testing. Kindly any one please suggest any Unti testing tool and also if you have any demo of that suggested Tool's implementation for MFC code, Then it will be easier to catch easier . If that testing tool is a Free like GoogleTest(gtest) then it'll be more prefarable. I searched a lot, but i didn't get idea as per my requirement(exspecially for MFC code unittesting).So need help.Please suggest. Thanks

    _ R 2 Replies Last reply
    0
    • P pk jain

      Hi, I have a application developed in VC++(MFC).Its a MDI application.I am very new to Unit testing. So i need to use a Unit testing framework\tool for it's unit testing. Kindly any one please suggest any Unti testing tool and also if you have any demo of that suggested Tool's implementation for MFC code, Then it will be easier to catch easier . If that testing tool is a Free like GoogleTest(gtest) then it'll be more prefarable. I searched a lot, but i didn't get idea as per my requirement(exspecially for MFC code unittesting).So need help.Please suggest. Thanks

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      You can use CppUnit for unit testing any C++ code whether MFC or not. And yes, it is free. Here are some references for CppUnit - CppUnit - C++ port of JUnit[^] CppUnit Cookbook[^] Unit testing with CPPUnit[^]

      «_Superman_»  _I love work. It gives me something to do between weekends.

      _Microsoft MVP (Visual C++) (October 2009 - September 2013)

      Polymorphism in C

      P 1 Reply Last reply
      0
      • _ _Superman_

        You can use CppUnit for unit testing any C++ code whether MFC or not. And yes, it is free. Here are some references for CppUnit - CppUnit - C++ port of JUnit[^] CppUnit Cookbook[^] Unit testing with CPPUnit[^]

        «_Superman_»  _I love work. It gives me something to do between weekends.

        _Microsoft MVP (Visual C++) (October 2009 - September 2013)

        Polymorphism in C

        P Offline
        P Offline
        pk jain
        wrote on last edited by
        #3

        Thanks _Superman :) :) Hoping this CPPUNIT will support all typeof VC++ App[MFC ,Win32]including COM,DCOM . In future if i get any more docmunets related to MFC untitestng i'll update here. Again hoping the same from you too.

        T 1 Reply Last reply
        0
        • P pk jain

          Thanks _Superman :) :) Hoping this CPPUNIT will support all typeof VC++ App[MFC ,Win32]including COM,DCOM . In future if i get any more docmunets related to MFC untitestng i'll update here. Again hoping the same from you too.

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          pk jain wrote:

          In future if i get any more docmunets related to MFC untitestng i'll update here. Again hoping the same from you too.

          better write a small tip and post it on CP. your message may lost here!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

          1 Reply Last reply
          0
          • P pk jain

            Hi, I have a application developed in VC++(MFC).Its a MDI application.I am very new to Unit testing. So i need to use a Unit testing framework\tool for it's unit testing. Kindly any one please suggest any Unti testing tool and also if you have any demo of that suggested Tool's implementation for MFC code, Then it will be easier to catch easier . If that testing tool is a Free like GoogleTest(gtest) then it'll be more prefarable. I searched a lot, but i didn't get idea as per my requirement(exspecially for MFC code unittesting).So need help.Please suggest. Thanks

            R Offline
            R Offline
            Rolf Kristensen
            wrote on last edited by
            #5

            Other test frameworks: Google Test[^] (Google Test Adapter (Adds VS2012 support)[^] Microsoft.VisualStudio.TestTools.CppUnitTestFramework (VS2012 only)[^] It can be a good idea to investigate how well the unit testing framework works together with your build server. It can give "free" benefits like test performance graphs, that can show if a recent code change have degraded performance.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups