diff --git a/CHANGELOG.md b/CHANGELOG.md index 53fded4..485bf4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [1.3.2] / 2024-05-09 ### Fixed -- Fix `ApplicationUtils` to clear temp folder after some minutes. +- Fix `ApplicationUtils` to clear temp folder after some minutes. (Fix: #41) +- Fix Net Core tests not stay after rebuild. (Fix: #40) ## [1.3.1] / 2024-04-02 ### Features diff --git a/ricaun.RevitTest.TestAdapter/TestCaseUtils.cs b/ricaun.RevitTest.TestAdapter/TestCaseUtils.cs index 6d87df7..00020a7 100644 --- a/ricaun.RevitTest.TestAdapter/TestCaseUtils.cs +++ b/ricaun.RevitTest.TestAdapter/TestCaseUtils.cs @@ -26,7 +26,6 @@ public static TestCase Create(string source, string testName) var testCase = new TestCase(fullyQualifiedName, TestAdapter.ExecutorUri, source) { DisplayName = displayName, - Id = GetGuid(testName), }; return testCase; @@ -53,11 +52,6 @@ private static int LastIndexOfDisplayName(string testName) return lastIndexOfDot; } - private static System.Guid GetGuid(string testName) - { - return new System.Guid(testName.GetHashCode(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } - #endregion } } \ No newline at end of file diff --git a/ricaun.RevitTest.TestAdapter/TestDiscoverer.cs b/ricaun.RevitTest.TestAdapter/TestDiscoverer.cs index ff41a3b..56c04ad 100644 --- a/ricaun.RevitTest.TestAdapter/TestDiscoverer.cs +++ b/ricaun.RevitTest.TestAdapter/TestDiscoverer.cs @@ -80,9 +80,10 @@ internal static List GetTests( foreach (var testName in testNames) { - AdapterLogger.Logger.Info($"TestCase: {testName}"); var testCase = TestCaseUtils.Create(source, testName); + AdapterLogger.Logger.Info($"TestCase: {testCase} [{testCase.DisplayName}] \t{testCase.Id}"); + discoverySink?.SendTestCase(testCase); tests.Add(testCase); } diff --git a/ricaun.RevitTest.TestAdapter/TestExecutor.cs b/ricaun.RevitTest.TestAdapter/TestExecutor.cs index aca227a..6139d6f 100644 --- a/ricaun.RevitTest.TestAdapter/TestExecutor.cs +++ b/ricaun.RevitTest.TestAdapter/TestExecutor.cs @@ -164,13 +164,13 @@ await revit.RunTestAction(source, private static void RecordResultTestModel(IFrameworkHandle frameworkHandle, string source, List tests, TestModel testModel) { TestCase testCase = TryFindSimilarTestCaseUsingTestModel(tests, testModel); - - if (testCase is null) + var needToCreateTestCase = testCase is null; + if (needToCreateTestCase) { testCase = TestCaseUtils.Create(source, testModel.FullName); } - AdapterLogger.Logger.Info($"\tTestCase: {testCase} [{testCase.DisplayName}]"); + AdapterLogger.Logger.Info($"\tTestCase: {testCase} [{testCase.DisplayName}] \t{testCase.Id}"); var testResult = new TestResult(testCase);