Browse Source

Improve visual tests automated test result output

Michael Ragazzon 2 years ago
parent
commit
edcb854a1a
1 changed files with 9 additions and 9 deletions
  1. 9 9
      Tests/Source/VisualTests/TestNavigator.cpp

+ 9 - 9
Tests/Source/VisualTests/TestNavigator.cpp

@@ -502,20 +502,14 @@ void TestNavigator::StopTestSuiteIteration()
 		log += "\n\nNot Equal:\n";
 		log += "\n\nNot Equal:\n";
 
 
 		if (!not_equal.empty())
 		if (!not_equal.empty())
-			log += "Percentages are similarity scores. Difference images written to " + GetCaptureOutputDirectory() + "/*-diff.png\n\n";
+			log += "Percentages are similarity scores.\n\n";
 		for (int i : not_equal)
 		for (int i : not_equal)
 		{
 		{
 			suite.SetIndex(i);
 			suite.SetIndex(i);
-			log += Rml::CreateString(256, "%5d   %5.1f%%   %s\n", i + 1, comparison_results[i].similarity_score * 100.0, suite.GetFilename().c_str());
+			log += Rml::CreateString(512, "%5d   %5.1f%%   %s\n", i + 1, comparison_results[i].similarity_score * 100.0, suite.GetFilename().c_str());
 			if (!comparison_results[i].error_msg.empty())
 			if (!comparison_results[i].error_msg.empty())
 				log += "          " + comparison_results[i].error_msg + "\n";
 				log += "          " + comparison_results[i].error_msg + "\n";
 		}
 		}
-		log += "\nEqual:\n";
-		for (int i : equal)
-		{
-			suite.SetIndex(i);
-			log += Rml::CreateString(256, "%5d   %s\n", i + 1, suite.GetFilename().c_str());
-		}
 		log += "\nFailed:\n";
 		log += "\nFailed:\n";
 		for (int i : failed)
 		for (int i : failed)
 		{
 		{
@@ -527,7 +521,13 @@ void TestNavigator::StopTestSuiteIteration()
 		for (int i : skipped)
 		for (int i : skipped)
 		{
 		{
 			suite.SetIndex(i);
 			suite.SetIndex(i);
-			log += Rml::CreateString(256, "%5d   %s\n", i + 1, suite.GetFilename().c_str());
+			log += Rml::CreateString(512, "%5d   %s\n", i + 1, suite.GetFilename().c_str());
+		}
+		log += "\nEqual:\n";
+		for (int i : equal)
+		{
+			suite.SetIndex(i);
+			log += Rml::CreateString(512, "%5d   %s\n", i + 1, suite.GetFilename().c_str());
 		}
 		}
 
 
 		const Rml::String log_path = GetCaptureOutputDirectory() + "/comparison.log";
 		const Rml::String log_path = GetCaptureOutputDirectory() + "/comparison.log";