C++ test inside main.cpp
Currently, I have implemented some test cases in C++ and have bound them inside the main.cpp
. This means that these test cases are always loaded with the main module. It would be better to have these inside a separate file, e.g., test.cpp
-- similar to what is done in bob.io.base
: https://gitlab.idiap.ch/bob/bob.io.base/blob/master/bob/io/base/test.cpp
and load the test cases only in the test module, like:
https://gitlab.idiap.ch/bob/bob.io.base/blob/master/bob/io/base/test_cpp.py#L1