PDA

View Full Version : newb-friendly guide to unit testing in c++


nala
March 15th, 2006, 09:21 PM
I need to know how to write a unit test in c++. I'm hoping for a newb-friendly guide because I'm still pretty new to programming. I can't use a unit testing program, because writing a unit test is part of an assignment. (We haven't covered how to write a unit test in c++. We've only covered how to do it in Python.)

I have tried looking around on Google, but I got a bunch of hits for unit testing programs. Does anyone know of a good website? Thanks! :)

unittesting
July 12th, 2011, 10:24 AM
Have you tried Isolator++ for Linux (http://www.typemock.com/isolatorpp-product-page?utm_source=ubuntuforum&utm_medium=newb-friendly-guide&utm_campaign=forum-post)? It's a mocking framework that works on Ubuntu. It allows you to test your code without changing it, so it's also a good way to learn how to start unit testing - but it's also suitable for the advanced user who is struggling with legacy code.

You can try it out http://www.typemock.com/isolatorpp-product-page (http://www.typemock.com/isolatorpp-product-page?utm_source=ubuntuforum&utm_medium=newb-friendly-guide&utm_campaign=forum-post)