Skip to content

Unit test framework

Colin edited this page Apr 7, 2016 · 19 revisions

Welcome to cppocl/test which is where the C++ unit test framework can be found. To use this only requires including Test.hpp for each source code file that has unit tests, and TestClass.cpp needs to be added to the makefile or project file.

This seems to be fairly stable, and has been used by myself for many months now, but I am still continuing with improvements and writing unit tests to test the unit test framework.

This framework is designed to test functions, member functions and also be able to write performance tests which can then be examined in the report generated by the framework to stdio.

Please let me know if you find and bugs and I will fix them. I will also consider any new feature requests, but I am not looking for contributors at the moment.

There is also a document that explains the features of the framework in the test folder.

This is a list of features that will be added to the unit test framework:

  • Custom logging
  • Break on error

Code can be found here: https://github.com/cppocl/cppocl/tree/master/test

Clone this wiki locally