Comments (3)
Note that I can successfully run the test included in the GoogleMock.xcodeproj, the problem only occurs when I add GoogleMock to my own project. I therefore suspect this may be an issue with compiler settings. Currently I am just using the Xcode defaults.
from gmock-xcode.
Sorry you ran into issues.
What kind of target are you testing?
Not sure I understand your 4th point:
Copy Test.cpp to the new project and add it to the testing target
Can you share your example project?
from gmock-xcode.
Thanks for the quick answer. It seems it was my error here as I didn't add the test bundle to Test action in the scheme for my my target. So either the tests didn't have an associated target or they had the test bundle itself as a target.
It might be worth adding to the README that the test bundle needs to be added in the scheme manager as shown below, for those who are not so familiar with setting up tests.
from gmock-xcode.
Related Issues (8)
- "Better schemes - Coverage in Xcode" breaks my tests. HOT 1
- testHasGoogleMockTests fires when running the tests. HOT 2
- Seeing following error HOT 2
- How to include test files from other directory? HOT 2
- testHasGoogleMockTests always failing. HOT 3
- How far behind the googletest repo is this project? HOT 4
- Any way to run the tests individually? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmock-xcode.