
On Sat, May 2, 2015, at 06:41 PM, Bryce Harrington wrote:
It's been a week and I've only heard expressions of support for the switch, so let's go ahead and make the decision official. We'll switch from cxxtest to google test as our unit testing framework.
Anyone wishing to work on adding google test, please proceed.
In contrast to our ambitions of factoring *out* dependencies, with the test harness we will want to copy the gtest framework *in* tree.
Do not delete the existing cxxtest harness until all tests are converted over, and we've done one release with gtest.
I've cleaned up my Google Test work and it is now in trunk as of revision 14100. I did not yet add the Google source itself yet, but if you do have it in place the CMake build should now pick it up.
Create a folder named 'gtest' at the top level next to 'src' Download Google Mock 1.7 and extract it in gtest Configure cmake. If you use ccmake you should see an item for the location of google mock and a boolean toggle to configure with it. Run 'make check' (adding the appropriate -j flag to utilize multiple cores)
To re-run by itself (such as to get the detailed test output) use ./bin/unittest