Comments (8)
There is not PIO support for the mocks yet. That is in work. Initial support has been added to google test and I am now working through library manager issues.
I would like to leave this open for tracking until that support is in place.
from cpp-client.
Change was finally approved and merged into GTest late last week.
Next task is for me to check to see if updated have been published to PIO and then retest and iterate.
from cpp-client.
For the desktop OS's, GMock is already available and should probably be used.
For IoT/PlatformIO, The AUnit library supports mocks but (ideally) a GMock adapter would need to be written to support a single unit test code base between desktop and IoT, just like we do for GTest.
This GMock adapter (if successful) should be contributed back to AUnit just like the GTest adapter has.
from cpp-client.
Another approach to this would be to use GTest/GMock on IoT and drop usage of AUnit.
googletest has just merged my PR to add PIO support.
The next step is to add the library into the PIO library manager. I have plans to get this going. Once done we should be able to use GTest/GMock for IoT.
from cpp-client.
This is being held up by this:
google/googletest#2013
from cpp-client.
#44 by @ciband adds Mocks and resolves this issue/feature request.
from cpp-client.
@ciband Any progress on this?
from cpp-client.
Once #66 is merged, the next step is to add support for ESP8266.
Once ESP8266 is supported, this issue can be closed.
from cpp-client.
Related Issues (20)
- [Weekly Digest] Oct 14, 2019 - Oct 20, 2019
- [Weekly Digest] Oct 21, 2019 - Oct 27, 2019
- [Weekly Digest] Oct 28, 2019 - Nov 3, 2019
- [Weekly Digest] Nov 4, 2019 - Nov 10, 2019
- [Weekly Digest] Nov 11, 2019 - Nov 17, 2019
- [Weekly Digest] Nov 25, 2019 - Dec 1, 2019
- [Weekly Digest] Dec 2, 2019 - Dec 8, 2019
- [Weekly Digest] Feb 10, 2020 - Feb 16, 2020
- [Weekly Digest] Feb 17, 2020 - Feb 23, 2020
- [Weekly Digest] Feb 24, 2020 - Mar 1, 2020
- [Weekly Digest] Mar 2, 2020 - Mar 8, 2020
- [Weekly Digest] Mar 9, 2020 - Mar 15, 2020
- HTTPS support HOT 4
- Bug: esp32 nodemcu HTTP requests throwing InstrFetchProhibited HOT 4
- [Weekly Digest] Apr 20, 2020 - Apr 26, 2020
- [Weekly Digest] Apr 27, 2020 - May 3, 2020
- Remove Http HOT 2
- [Weekly Digest] Sep 14, 2020 - Sep 20, 2020
- [macOS: Big Sur][Arduino IDE][ESP32] build failure HOT 1
- cmake_example build failure 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 cpp-client.