Unable to create C++ google test for the C++ class
Unsolved
C++ Gurus
-
Hi Team,
I got one C++ project. Where I have to write C++ google test unit testing for each file, function's and conditions to improve coverage. But the problem is I am able to write the gtest for non qt functions. If any function is having Qt Widget let's say In my case QTreeView used. I am unable to write the gtest for that class It is giving an error like.
QWidget: Must construct a QApplication before a QWidget
WARNING: xml report not find. for: bld_local/TEST_controllerPlease do help .Thanks
-
The error tells you what to do - create a QApplication object before you create your widgets.