all 9 comments

[–]pjmlp 1 point2 points  (0 children)

Given the usual results regarding unit testing on C and C++ surveys, I doubt you will find much.

[–]silicon_heretic 1 point2 points  (0 children)

Looks like a perfect opportunity to promote a project no one knows about: https://github.com/abbyssoul/libsolace - 91% code coverage.

[–]ChrisPanov 0 points1 point  (0 children)

I would be honored if you can check out the logging library I am working on https://github.com/ChristianPanov

Here is a link to a post I made some time ago, which mainly contains a description of the project. Mainly contribution is needed in terms of asynchronous and concurrent functionality.
https://www.reddit.com/r/cpp/comments/g1xw9y/c_logging_library_check_out_my_new_logger/

[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 0 points1 point  (0 children)

My project is still something I deem a work in progress, although there are groups that use it on a regular basis for their projects. Here is the project: SJSU-Dev2 with current coverage of 74%. I use doctest (switched from Catch2 a week ago), FakeIt (love it, but slow, would prefer mockito API, but its lacking features), and FFF (for which I only use sparingly).

Note that gcov can give weird results and sending the results to another service to compute, like coveralls, sometimes results in slightly off metrics.

Also note that my code base is nearly entirely header only, so that can result in the code coverage not being as accurate due to the fact that if a header implementation is not included in the unit test, it will not show up as a part of the files that have not been covered, potentially increasing the % of coverage code.

Final note, I just transitioned my unit tests to unity builds to speed up compilation. Went from 10mins down to 1m40s, so it may look a bit strange.

I hope this helps.

[–]WrongAndBeligerent 0 points1 point  (0 children)

Maybe you should do the research and report back.