jak-project/test/test_main.cpp
2020-10-09 19:44:16 -04:00

18 lines
461 B
C++

#include "gtest/gtest.h"
#include "common/util/FileUtil.h"
#include <filesystem>
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
// Re-init failed folder
std::string failedFolder = file_util::get_file_path({"test/goalc/source_generated/failed/"});
if (std::filesystem::exists(failedFolder)) {
std::filesystem::remove_all(failedFolder);
}
std::filesystem::create_directory(failedFolder);
return RUN_ALL_TESTS();
}