GithubHelp home page GithubHelp logo

Comments (8)

ciband avatar ciband commented on May 23, 2024 1

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.

ciband avatar ciband commented on May 23, 2024 1

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.

ciband avatar ciband commented on May 23, 2024

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.

ciband avatar ciband commented on May 23, 2024

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.

google/googletest#2000

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.

ciband avatar ciband commented on May 23, 2024

This is being held up by this:
google/googletest#2013

from cpp-client.

sleepdefic1t avatar sleepdefic1t commented on May 23, 2024

#44 by @ciband adds Mocks and resolves this issue/feature request.

from cpp-client.

sleepdefic1t avatar sleepdefic1t commented on May 23, 2024

@ciband Any progress on this?

from cpp-client.

ciband avatar ciband commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.