No advices? At all?
No advices? At all?
You are asking in a Qt forum how to build and use Google Test. Did you expect to be flooded with answers?
You start by reading the invitingly named README file in the gtest zip file. The first thing that you will note is the absence MingW in the list of build environments. Doesn't mean it won't work but you might need a full MSys environment. Look for the CMake instructions; this is probably your best bet.
Then you read the Google Test Docs
Are you sure you weren't told to use QTest?
"We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.
Well... I was going to use QTest, but then i was told, that Google Test is the better way to test.
But I think I can convince them that QTest is the way to do that, but then, can you redirect me to some documentation (preferably step-by-step) how to create those test?
For example have i to create new class in my project, or do I create new project, and how to link these tests, so I could test my classes...
Last edited by Archa4; 11th May 2011 at 09:15.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks