what can not be tested in C++ unit testing?
Hi,
Hi I am sorry if its not the right place to put the question.(I'll request modeartor to put it to right place, but i think we dont have a subforum to testing c++ program).
Coming to my question, what kind of functions can be tested by unit testing. If a function,
take some arguments and returns a value. its easy to write test code for it. But what if a functions takes no argument and call few other functions inside it (and those functions are from different classes). How to write test code for it. Will it still be called a unit test.
I have read many articles over net but getting no clear idea. I am currently using QT test framework ( qttestlib) but i m interested in c++ unit testing in general(CppUnit or any other).
A good reference to book or article will also be a great help.
Warm regards,
Alex