This C++ testing framework is very light and only requires a header file to include. Above all it will allow to have testing code in production code.

https://github.com/onqtam/doctest