Hi, I know the title does not quite reflect my doubt, so let me expand on the subject. First, I downloaded Google test when I started looking around about this method of testing called unit tests. The suggestion came from Bafan, a person on the forum, after I engaged in the article "Debugging, a lost art?"(http://bytes.com/topic/software-deve...gging-lost-art) I read the documentation from Google and looked at two basic examples. Thus, I understand how to get statements set in a unit test format, but what I'm unsure is how do you run it (the samples from Google do not show any main function called from the source file where the tests are). In other words, do I simply compile the source code with the test statements, even if it doesn't contain a main function?
I'm using Code::Blocks with MinGW. I just want to be clear that I can just compile the file with the macros, for I didn't expect for the unit test to be a simple process to set up. Thanks. :)