July 31, 2012

acy062 acy062
Lab Rat
3 posts

can Qt creator can add Google Test Framework

 

I want to know if Google Test Framework can be connected with the Qt creator.
If we have to connectt he Google Test Framework, how can we do it.

3 replies

July 31, 2012

Tobias Hunger Tobias Hunger
Mad Scientist
3224 posts

Depends on what the “Google Test Framework” actually is:-) Do you have some links?

August 1, 2012

sidewinder sidewinder
Ant Farmer
65 posts

I think he talks about google unit tests [code.google.com] and maybe google mocks [code.google.com] as well.

AFAIK you can get it to work (it’s c++ after all :) ) but not without some quirks. Check this [stackoverflow.com]. Also, you will have problems testing Qt stuff generated by moc (signals/slots, meta objects, properties, etc…).

 Signature 

“Never memorize what you can look up in books.”
Albert Einstein

August 1, 2012

Skylar Skylar
Ant Farmer
47 posts

Not yet started this UnitTest point, but may I please ask you why not using QTestLib ?

http://qt-project.org/doc/qt-5.0/qtestlib-manual.html

 Signature 

In most cases, the bug is mine. But of the remaining lines are correct.

 
  ‹‹ Where to set conditional compile symbols in QtCreator?      Remote Compiler authentication does not work ››

You must log in to post a reply. Not a member yet? Register here!