From 1f6e15bef7ae3a4ae7255be94525b61dd32463d2 Mon Sep 17 00:00:00 2001 From: Jannis Date: Wed, 14 Aug 2024 09:03:47 +0000 Subject: [PATCH] Update TestManager.bf actually use and resolve Name attribute --- IDE/src/TestManager.bf | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/IDE/src/TestManager.bf b/IDE/src/TestManager.bf index c2d4cd2c..74502faf 100644 --- a/IDE/src/TestManager.bf +++ b/IDE/src/TestManager.bf @@ -388,10 +388,25 @@ namespace IDE testEntry.mLine = int32.Parse(cmdParts[3]).Get(); testEntry.mColumn = int32.Parse(cmdParts[4]).Get(); - testEntry.mShouldFail = attribs.Contains("Sf"); - testEntry.mProfile = attribs.Contains("Pr"); - testEntry.mIgnore = attribs.Contains("Ig"); + List 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); } }