Comments (3)
Comment by Johan:
Potential issues would be:
- CppUTest is easy to build for an end-user and is typically distributed with the package manager. For gtest+gmock this is not the case and the end-user needs to build and install from source by themselves. Alternatively Celix could bundle the binaries and headers, which would add work on the project side instead of the user side.
- gmock does not support mocking C functions exactly, there are ways of working around this[0][1] which either introduces extra boilerplate or an extra dependency.
[0] https://github.com/hjagodzinski/C-Mock
[1] https://stackoverflow.com/questions/31989040/can-gmock-be-used-for-stubbing-c-functions
from celix.
CppUTest is easy to build for an end-user and is typically distributed with the package manager. For gtest+gmock this is not the case and the end-user needs to build and install from source by themselves. Alternatively Celix could bundle the binaries and headers, which would add work on the project side instead of the user side.
With Conan package manager, one extra line like self.test_requires("gtest/1.10.0")
will make gtest ready to use.
Mocking C functions is indeed an issue.
from celix.
This has been addressed by #711.
from celix.
Related Issues (20)
- Shell command support as consumerbundle HOT 8
- Bundle Management API Usability Improvement HOT 3
- CXX Remote Service stack-uffer-underflow
- Ensure the build containers keeps working
- Annotation of Consumer/Provider Type HOT 1
- celix 2.4.0 installation problem HOT 3
- macOS Build Timeout HOT 3
- How to debug bundles with GDB HOT 9
- Use-after-free in RemoteServicesIntegrationTestSuite.InvokeRemoteCalcService HOT 1
- Self-Contained Apache Celix Executable for Simplified Installation and Deployment1 HOT 1
- Minimize over-inclusion to reduce accidental complexity in header files HOT 1
- Discovery Zeroconf Portability
- General Dynamic IP Resolution for RSA
- Precise Definitions of DFI Argument Types HOT 4
- Unified Error Codes for libdfi
- Memory Leaks Caused By realloc Failure
- Unlimited Spin of Glibc's Read-write-lock Implementation HOT 4
- #include style
- run_test_rsa_dfi failure
- Codecov report uploader throttled HOT 2
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 celix.