falconpl/Falcon2

Basic C++ unit tests framework

Closed this issue · 3 comments

Prepare a basic unit test framework (FUT).

The unit test framework will be used also as project bootstrap -- i.e. to prepare the basic development work cycle.

The framework is up and it can be already be used to write unit tests for the engine, for modules and for third party applications.

It's integrated with ctest through a new function in the cmake/utils.cmake library, falcon_add_fut(), which adds a unit test to ctest and prepares resources for installation, if the FALCON_INSTALL_TESTS option is ON.

The following is still missing, to be done in the next days:

  • Options parser for the command line
  • Generation of a report file for the single unit test (pretty output on stdout is already available)
  • Performance recording (i.e. timer)
  • Maybe, add a form of test adapters (common initialization shared across multiple tests).

The framework is now complete; needs documentation and a couple of samples (although there are unit tests for the unit tests)

And done. Docs added as Readme.md in the relevant fut/ subdirectory