Test: Support of parallel execution of reader tests (#18587)

* Tests: Initialize xerces sub-system in order to parse XML files

* Test: Support of parallel execution of reader tests

Fixes #18549
This commit is contained in:
wwmayer
2024-12-20 17:42:02 +01:00
committed by GitHub
parent b62f971ed4
commit a0e1a31623
3 changed files with 146 additions and 100 deletions

View File

@@ -1,10 +1,20 @@
#include <gtest/gtest.h>
#include <Base/FileInfo.h>
#include <Mod/Mesh/App/Core/IO/Reader3MF.h>
#include <xercesc/util/PlatformUtils.hpp>
#include <zipios++/fcoll.h>
class ImporterTest: public ::testing::Test
{
protected:
static void SetUpTestSuite()
{
XERCES_CPP_NAMESPACE::XMLPlatformUtils::Initialize();
}
};
// NOLINTBEGIN(cppcoreguidelines-*,readability-*)
TEST(ImporterTest, Test3MF)
TEST_F(ImporterTest, Test3MF)
{
std::string file(DATADIR);
file.append("/tests/mesh.3mf");