C SDK - Examples of a unit test?

Does anyone have an example of a unit test?

I've spent an hour or two reading through examples of Unity (the unit testing framework, not the game engine), CTest, GoogleTest, munit etc. but couldn't get anything up and running.

I can write the C code perfectly well, but I don't understand the ecosystem around Mesos, Ninja, CMake etc. to be able to plug it all together.

I worked it out.

I've documented the process in this repo, along with a working example based on the Playdate SDK Hello World example.

The commit history basically mirrors the step by step guide in the README.

2 Likes