OOLua  2.0.1
C++ and Lua binding
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Library Tests

OOLua is a test driven library which uses two cross platform external libraries for test verification, CppUnit 1.12.1 [1] is used for state based verification and GoogleMock 1.6 [2] for behaviour verification. For anybody who is not fimilar with these libraries and would like to know more then I would recommed an IBM article [3] for CppUnit whilst for GoogleMock a recorded presentation by the author [4] additionaly the library cheat sheet [5].

Directory Layout

Library test code is situated in a directory named unit_tests in the root of the repository [6] or the root of a released source package [7]. This directory has three main sub directories into which the test code is seperated.

  • cpp_classes Classes which will be proxied in tests.
  • bind_classes The OOLua bindings for the cpp_classes.
  • test_classes Test suites using CppUnit and GoogleMock.

Test Scripts

See Also
Test Unit scripts

[1] CppUnit home page http://sourceforge.net/projects/cppunit/

[2] GoogleMock home page http://code.google.com/p/googlemock/

[3] Open source C/C++ unit testing tools, Part 2: Get to know CppUnit http://www.ibm.com/developerworks/aix/library/au-ctools2_cppunit/index.html

[4] C++ Mocks Made Easy - An Introduction to gMock http://www.youtube.com/watch?v=sYpCyLI47rM

[5] Google C++ Mocking Framework Cheat Sheet http://code.google.com/p/googlemock/wiki/CheatSheet

[6] Repository unit test directory http://oolua.org/browse/unit_tests

[7] Source package downloads http://oolua.org/downloads.html