Thread: Unit testing in C++?

  1. #1
    Registered User
    Join Date
    Dec 2019
    Posts
    1

    Unit testing in C++?

    Hey guys,
    I have recently got a new job and they require unit tests everywhere, such that it will cover at least 80% of the codebase.

    I am not familiar with test frameworks and/or mocking tools in C++. I wonder if you have something recommended for me, from your experience as it is a new project so I determine what framework and what mocking tool to use here.

    Thank you!

  2. #2
    Registered User
    Join Date
    Dec 2019
    Posts
    1
    Hey Alice,

    <<< yawn snipped from the sock puppet >>>

    Let me know if I can help further.
    Last edited by Salem; 12-16-2019 at 11:42 PM. Reason: Don't worry, you'll both be gone soon enough

  3. #3
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,787
    Quote Originally Posted by Johanson_gs View Post
    You can google it as I cant post any links here (I guess? )
    AFAIK you can post links for stuff like that in direct response to question but I'm not a moderator. Anyway, it's easy enough to google

    Edit: Unless the OPs question was a troll to get you to post a link I guess! But I think that it would be reasonable to assume good faith and post a link. @Salem @laserlight
    Last edited by Hodor; 12-16-2019 at 04:22 AM.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well since Alice has posted the same thing in at least 3 places now, and the sock-puppet johanson has posted the same reply in at least two of them, it's pretty obvious what the MO is.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unit Testing Abstract Class
    By mconflict in forum C++ Programming
    Replies: 1
    Last Post: 11-10-2012, 04:47 PM
  2. C and C++ unit testing framework
    By Siddu_Kyocera in forum C Programming
    Replies: 1
    Last Post: 05-21-2010, 08:34 AM
  3. what can not be tested in C++ unit testing?
    By Alexpo in forum C++ Programming
    Replies: 1
    Last Post: 03-01-2010, 12:31 AM
  4. A Question About Unit Testing
    By Tonto in forum C++ Programming
    Replies: 2
    Last Post: 12-14-2006, 08:22 PM
  5. Unit testing tools for .NET ?
    By gicio in forum C# Programming
    Replies: 0
    Last Post: 11-10-2003, 04:43 AM

Tags for this Thread