1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-19 00:17:56 +02:00

Tests improvement

Delete our logger from tests.
Make correction.
This commit is contained in:
FeniksFire
2017-07-18 21:18:37 +02:00
parent 587f59e93a
commit d84ecb6fb2
6 changed files with 10 additions and 36 deletions

View File

@ -26,7 +26,6 @@ static const int TEST_RANDOM_SEED = 1337;
TEST(MapFormat, Random)
{
logGlobal->info("MapFormat_Random start");
SCOPED_TRACE("MapFormat_Random start");
std::unique_ptr<CMap> initialMap;
@ -63,9 +62,6 @@ TEST(MapFormat, Random)
tmp.write((const char *)serializeBuffer.getBuffer().data(),serializeBuffer.getSize());
tmp.flush();
tmp.close();
logGlobal->info("Test map has been saved to:");
logGlobal->info(path.string());
}
SCOPED_TRACE("MapFormat_Random saved");
#endif // 1
@ -79,7 +75,6 @@ TEST(MapFormat, Random)
c(serialized, initialMap);
}
SCOPED_TRACE("MapFormat_Random finish");
logGlobal->info("MapFormat_Random finish");
}
static JsonNode getFromArchive(CZipLoader & archive, const std::string & archiveFilename)
@ -114,8 +109,6 @@ static void addToArchive(CZipSaver & saver, const JsonNode & data, const std::st
TEST(MapFormat, Objects)
{
logGlobal->info("MapFormat_Objects start");
static const std::string MAP_DATA_PATH = "test/ObjectPropertyTest/";
const JsonNode initialHeader(ResourceID(MAP_DATA_PATH+"header.json"));
@ -173,8 +166,6 @@ TEST(MapFormat, Objects)
tmp.write((const char *)serializeBuffer.getBuffer().data(),serializeBuffer.getSize());
tmp.flush();
tmp.close();
logGlobal->infoStream() << "Test map has been saved to " << path;
}
{
@ -196,6 +187,4 @@ TEST(MapFormat, Objects)
JsonMapComparer c;
c.compareTerrain("underground", actualUnderground, expectedUnderground);
}
logGlobal->info("MapFormat_Objects finish");
}