Adding New Suite Modules

Right-click on a project, folder or file (.cpp or .h) and choose New > CUTE Suite File.

Enter the name of your new suite and click Finish.

Now you need to have your runner also integrate the cute::suite that is returned by the make_suite_<your_suite_name>() function in <your_suite_name>.h.

The initial Test.cpp (or the file that contains your cute::makeRunner(...) call) should look similar to this:

#include "cute.h" 
#include "ide_listener.h" 
#include "xml_listener.h" 
#include "cute_runner.h" 
#include "MyNewTestSuite.h" 

bool runSuite(int argc, char const *argv[]) {
    cute::xml_file_opener xmlfile(argc, argv);
    cute::xml_listener<cute::ide_listener<>> lis(xmlfile.out);

    auto runner = cute::makeRunner(lis, argc, argv);
    cute::suite s { make_suite_MyNewTestSuite() };

    bool success = runner(s, "MyNewTestSuite");
    return success;
}

int main(int argc, char const *argv[]) {
    return runSuite(argc, argv) ? EXIT_SUCCESS : EXIT_FAILURE;
}

Add an include to <your_suite_name>.h and instantiate a new cute::suite using make_suite_<your_suite_name>() as argument. Then add a runner call.

#include "cute.h" 
#include "ide_listener.h" 
#include "xml_listener.h" 
#include "cute_runner.h" 
#include "MyNewTestSuite.h" 
#include "MyNewerTestSuite.h" //new line

bool runSuite(int argc, char const *argv[]) {
    cute::xml_file_opener xmlfile(argc, argv);
    cute::xml_listener<cute::ide_listener<>> lis(xmlfile.out);

    auto runner = cute::makeRunner(lis, argc, argv);
    cute::suite s { make_suite_MyNewTestSuite() };
    cute::suite MyNewerTestSuite { make_suite_MyNewerTestSuite() }; //new line

    bool success = runner(s, "MyNewTestSuite");
    success = runner(MyNewerTestSuite, "MyNewerTestSuite") && success; //new line
    return success;
}

int main(int argc, char const *argv[]) {
    return runSuite(argc, argv) ? EXIT_SUCCESS : EXIT_FAILURE;
}

After this, the CUTE test view should look as shown below: