Robin Mueller
a18706ec53
1. Further reduces the amount of code the user needs to copy and paste 2. Makes FSFW tests more accessible. This can be used to simplify moving mission unit tests to the FSFW 3. A lot of include improvements
27 lines
595 B
C++
27 lines
595 B
C++
/**
|
|
* @file CatchRunner.cpp
|
|
* @brief Source file to compile catch framework.
|
|
* @details All tests should be written in other files.
|
|
* For eclipse console output, install ANSI Escape in Console
|
|
* from the eclipse market place to get colored characters.
|
|
*/
|
|
|
|
#include "CatchRunner.h"
|
|
|
|
#define CATCH_CONFIG_COLOUR_WINDOWS
|
|
|
|
#include <catch2/catch_session.hpp>
|
|
|
|
extern int customSetup();
|
|
|
|
int fsfwtest::customMain(int argc, char* argv[]) {
|
|
customSetup();
|
|
|
|
// Catch internal function call
|
|
int result = Catch::Session().run(argc, argv);
|
|
|
|
// global clean-up
|
|
return result;
|
|
}
|
|
|