Skip to content

Commit

Permalink
ISSUE #391 adding dummy tests for other use cases. using the helper f…
Browse files Browse the repository at this point in the history
…unctions to get datapaths
  • Loading branch information
haroon-haider committed Nov 13, 2020
1 parent f229aa1 commit eb7d05a
Showing 1 changed file with 43 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <repo/manipulator/modelconvertor/import/repo_model_import_3drepo.h>
#include <repo/lib/repo_log.h>
#include "../../../../repo_test_utils.h"
#include "../../../../repo_test_database_info.h"

using namespace repo::manipulator::modelconvertor;
using namespace repo::test;
Expand Down Expand Up @@ -54,18 +55,54 @@ static bool testBIMFileImport(
return scenePassed;
};

TEST(RepoModelImport, ImportModel)
TEST(RepoModelImport, SupportedFormats)
{
TestLogging::printTestTitleString(
"BIM file format - standard flow",
"Happy path tests to check for compatability with all of the BIM \
"Supported BIM format tests",
"Happy path tests to check for compatability with all of the supported BIM \
file format versions");

TestLogging::printSubTestTitleString("BIM003 file - with textures");
EXPECT_TRUE(testBIMFileImport(
R"(C:\Users\haroo\Desktop\BIMTextureFiles\cube_txtr_bim3_revit_2021_repo_17de4e0.bim)", 4, 3, 4));
getDataPath("RepoModelImport\\cube_bim3_revit_2021_repo_17de4e0.bim"), 4, 3, 4));

TestLogging::printSubTestTitleString("BIM002 file");
EXPECT_TRUE(testBIMFileImport(
R"(C:\Users\haroo\Desktop\BIMTextureFiles\cube_txtr_bim2_navis_2021_repo_4.6.1.bim)", 3, 0, 4));
}
getDataPath("RepoModelImport\\cube_bim2_navis_2021_repo_4.6.1.bim"), 3, 0, 4));
}

TEST(RepoModelImport, UnsupportedFormats)
{
TestLogging::printTestTitleString(
"Unsupported BIM file format",
"CHecking to see if the right errors get thrown");

TestLogging::printSubTestTitleString("BIM001 file - testing for unsupported error");
EXPECT_TRUE(testBIMFileImport(
getDataPath("RepoModelImport\\cube_bim1_spoofed.bim"), 3, 0, 4));
}

TEST(RepoModelImport, MissingTextureFields)
{
TestLogging::printTestTitleString(
"BIM file format - standard flow",
"Happy path tests to check for compatability with all of the BIM \
file format versions");
}

TEST(RepoModelImport, CorruptTextureData)
{
TestLogging::printTestTitleString(
"BIM file format - standard flow",
"Happy path tests to check for compatability with all of the BIM \
file format versions");
}

TEST(RepoModelImport, MissingReferencedTexture)
{
TestLogging::printTestTitleString(
"BIM file format - standard flow",
"Happy path tests to check for compatability with all of the BIM \
file format versions");
}

0 comments on commit eb7d05a

Please sign in to comment.