I would like to write some test code for a C++ class. Because the class is part of an application but not a part of library I would like to know which unit test framework does not require building project as a library in order to run unit test code?
I tried the WinUnit but it seems only can test a library.
Executables don’t export symbols by default. You need to enable that with
-Wl,--export-dynamicthen link against the produced executable as though it was a library. This also means you need to do proper import/export on the classes you want to use etc.