fcfTest - Unit Test Library
Hello. I finally finished writing the fcfTest unit testing library: https://github.com/fcf-framework/fcfTest Until now, the library consisted of just a single macro; however, it now fully implement...

Source: DEV Community
Hello. I finally finished writing the fcfTest unit testing library: https://github.com/fcf-framework/fcfTest Until now, the library consisted of just a single macro; however, it now fully implements all the necessary functionality. Its primary distinguishing feature lies in the use of a single assertion macro for all tests—a capability made possible by the fact that the library is written in C++. Furthermore, integrating it requires nothing more than a single header file. The library supports independent command-line processing, allows for specifying the test execution order, and—most importantly—supports a hierarchical test structure organized into three levels: Section -> Group -> Test. It can also be compiled as a standalone DLL. Additionally, the library includes a simple logger (fcf::NTest::Duration::err() … fcf::NTest::log() … fcf::NTest::trc()) and a class for measuring execution duration (fcf::NTest::Duration). The main FCF_TEST macro—suitable for all scenarios: It allows