Explorar el Código

Update TestManager.bf

actually use and resolve Name attribute
Jannis hace 1 año
padre
commit
1f6e15bef7
Se han modificado 1 ficheros con 18 adiciones y 3 borrados
  1. 18 3
      IDE/src/TestManager.bf

+ 18 - 3
IDE/src/TestManager.bf

@@ -388,10 +388,25 @@ namespace IDE
 							testEntry.mLine = int32.Parse(cmdParts[3]).Get();
 							testEntry.mLine = int32.Parse(cmdParts[3]).Get();
 							testEntry.mColumn = int32.Parse(cmdParts[4]).Get();
 							testEntry.mColumn = int32.Parse(cmdParts[4]).Get();
 
 
-							testEntry.mShouldFail = attribs.Contains("Sf");
-							testEntry.mProfile = attribs.Contains("Pr");
-							testEntry.mIgnore = attribs.Contains("Ig");
 
 
+							List<StringView> attributes = scope .(attribs.Split('\a'));
+							for(var i in attributes)
+							{
+								if(i.StartsWith('\v'))
+								{
+									if(i == "\vSf")
+										testEntry.mShouldFail = true;
+									else if(i == "\vPr")
+										testEntry.mProfile = true;
+									else if(i == "\vIg")
+										testEntry.mIgnore = true;
+								}
+								else if(i.StartsWith("Name"))
+								{
+									testEntry.mName.Clear();
+									scope String(i.Substring("Name".Length)).Escape(testEntry.mName);
+								}
+							}
 							testInstance.mTestEntries.Add(testEntry);
 							testInstance.mTestEntries.Add(testEntry);
 						}
 						}
 					}
 					}