verion which did not include the handling in RTService wth creating the
Json file
This commit is contained in:
36
vrpmdvaotserver/test/tests.cpp
Normal file
36
vrpmdvaotserver/test/tests.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
#include "oatpp-test/UnitTest.hpp"
|
||||
#include "oatpp/core/base/Environment.hpp"
|
||||
#include "UserControllerTest.hpp"
|
||||
#include "MonitoringControllerTest.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace {
|
||||
|
||||
void runTests() {
|
||||
|
||||
OATPP_RUN_TEST(UserControllerTest);
|
||||
OATPP_RUN_TEST(MonitoringControllerTest);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
||||
oatpp::base::Environment::init();
|
||||
|
||||
runTests();
|
||||
|
||||
/* Print how much objects were created during app running, and what have left-probably leaked */
|
||||
/* Disable object counting for release builds using '-D OATPP_DISABLE_ENV_OBJECT_COUNTERS' flag for better performance */
|
||||
std::cout << "\nEnvironment:\n";
|
||||
std::cout << "objectsCount = " << oatpp::base::Environment::getObjectsCount() << "\n";
|
||||
std::cout << "objectsCreated = " << oatpp::base::Environment::getObjectsCreated() << "\n\n";
|
||||
|
||||
OATPP_ASSERT(oatpp::base::Environment::getObjectsCount() == 0);
|
||||
|
||||
oatpp::base::Environment::destroy();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user