mardi 24 mars 2015

How to run local c++ unit tests using google test in Xcode 6.1.1

I am new to google test and xcode. Please provide any help.


I download the google test, and I use xcode to open the googletest.xcodeproj in googletest. I build the project successfully.


I want to test against my project. I have some unit tests written in myProject/test/unittest.cc The unit tests contain functions that test against myproject/src/some.cc


I did some search, I do not have shell tool as an option in my xcode version. How should I set up the project in xcode? When I try New project, and import the myProject, it opened a new window with the myProject, but when I try to add the target dependencies, I could not see gtest.framework.


May I get information on how to set up the google test for the myProject in xCode please? Thank you.


Aucun commentaire:

Enregistrer un commentaire