Session

Testcontainers and API mocking for C/C++

Testcontainers has become one of the most popular tools for software integration testing. If you can put your system-under-test into a container, Docker Compose cluster, or a pod, this is what you're likely to use. If your target isn't ready, not containerizable, or just too heavy for testing as is, you can always use API mocking like WireMock to mock your interfaces including REST API, gRPC, etc. But are these tools available to C/C++ developers? And the answer is YES!

In September 2023 I created Testcontainers for C/C++. This is not a standalone Testcontainers engine, but a C-style shared library adapter for native languages like C/C++, and also D, Lua, Swift, etc. It is an MVP SDK that can be later extended for the languages. The project is based on Testcontainers for Go which is one of the most powerful implementations. And yes, I am happy to chat about how it does [and doesn’t] work under the hood!

References:
* Repo with code and demos: https://github.com/testcontainers/testcontainers-c
* WireMock and Testcontainers: https://wiremock.org/docs/solutions/testcontainers/

See the links here: https://docs.google.com/document/d/1zrM0e8kfbBjSF8aLEq-FV4a3_ITx_OPrAiyR49srGE4/edit?usp=sharing

Oleg Nenashev

Community Builder and DevRel Consultant, CNCF Ambassador, Jenkins core maintainer

Neuchâtel, Switzerland

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top