Browse Source

VisualTests: Place equal tests on bottom of report

Michael Ragazzon 1 year ago
parent
commit
96a0f6e899
1 changed files with 8 additions and 8 deletions
  1. 8 8
      Tests/Source/VisualTests/TestNavigator.cpp

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

@@ -480,8 +480,8 @@ void TestNavigator::StopTestSuiteIteration()
 				not_equal.push_back(i);
 				not_equal.push_back(i);
 		}
 		}
 
 
-		Rml::String summary = Rml::CreateString(256, "  Total tests: %d\n  Equal: %d\n  Not equal: %d\n  Failed: %d\n  Skipped: %d", num_tests,
-			(int)equal.size(), (int)not_equal.size(), (int)failed.size(), (int)skipped.size());
+		Rml::String summary = Rml::CreateString(256, "  Total tests: %d\n  Not equal: %d\n  Failed: %d\n  Skipped: %d\n  Equal: %d", num_tests,
+			(int)not_equal.size(), (int)failed.size(), (int)skipped.size(), (int)equal.size());
 
 
 		if (!suite.GetFilter().empty())
 		if (!suite.GetFilter().empty())
 			summary += "\n  Filter applied: " + suite.GetFilter();
 			summary += "\n  Filter applied: " + suite.GetFilter();
@@ -515,12 +515,6 @@ void TestNavigator::StopTestSuiteIteration()
 			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)
 		{
 		{
@@ -534,6 +528,12 @@ void TestNavigator::StopTestSuiteIteration()
 			suite.SetIndex(i);
 			suite.SetIndex(i);
 			log += Rml::CreateString(256, "%5d   %s\n", i + 1, suite.GetFilename().c_str());
 			log += Rml::CreateString(256, "%5d   %s\n", i + 1, suite.GetFilename().c_str());
 		}
 		}
+		log += "\nEqual:\n";
+		for (int i : equal)
+		{
+			suite.SetIndex(i);
+			log += Rml::CreateString(256, "%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";
 		bool save_result = SaveFile(log_path, log);
 		bool save_result = SaveFile(log_path, log);