You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One last try, before I give up on that. I prepared a merge request for comparison (#132).
Look at that beautity. More than 150 lines could be removed. It is possible to use test fixtures (setup, test cases, teardown) for single test suits and native c++ features like threads would allow you to make complete client<-->server sessions testable. GTest allows to output the result in JUnit and TAP compatible files (thing of jenkins and other CI GUIs). Tests can be repeated and shuffled for detecting memory leaks.
But choosing another test framework is nothing to be rushed. But for mid and longterm it may be a little easier to constribute tests and test suits with something more modern.
Regarding the advantages, look at the example here: https://github.com/google/googletest/blob/master/googletest/samples/sample1_unittest.cc.
This of course only works seamlessly, if cmake collects all cpp files via
file(GLOB)
in tests/ and add it to the test binary.but you can continue to write tests in C of course.
The text was updated successfully, but these errors were encountered: