diff --git a/CHANGELOG.md b/CHANGELOG.md index 972a601..5a1684b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fix local file copy to temporary by zip folder. - Add `TestsFilePathTooLong` to similate long path inside test. - Update to use `ricaun.Revit.UI.Tasks` library to run async tests. +- Update `ApplicationUtils` check local file exists. ## [1.3.4] / 2024-05-27 ### Console diff --git a/Directory.Build.props b/Directory.Build.props index cfdeb86..8869758 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 1.3.5-rc + 1.3.5-rc.1 \ No newline at end of file diff --git a/ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip b/ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip index 5725aed..ce1f765 100644 Binary files a/ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip and b/ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip differ diff --git a/ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip b/ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip index ec1e38f..1c33869 100644 Binary files a/ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip and b/ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip differ diff --git a/ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip b/ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip index f80d67d..b3c8ab3 100644 Binary files a/ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip and b/ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip differ diff --git a/ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs b/ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs index 61489c3..63ef1a9 100644 --- a/ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs +++ b/ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs @@ -147,11 +147,12 @@ public static async Task DownloadAsync(string applicationFolder, string ad private static bool LocalFileExists(string filePath, out string localFilePath) { localFilePath = filePath; - if (File.Exists(localFilePath)) return true; try { var assemblyDirectory = Path.GetDirectoryName(typeof(ApplicationUtils).Assembly.Location); localFilePath = Path.Combine(assemblyDirectory, filePath); + localFilePath = new FileInfo(localFilePath).FullName; + AdapterLogger.Logger.Debug($"Application LocalFileCheck: {assemblyDirectory}"); if (File.Exists(localFilePath)) { AdapterLogger.Logger.DebugOnlyLocal($"Download File AssemblyDirectory: {assemblyDirectory}"); diff --git a/ricaun.RevitTest.Tests/TestsDebugger.cs b/ricaun.RevitTest.Tests/TestsDebugger.cs index 3b77256..ee58b97 100644 --- a/ricaun.RevitTest.Tests/TestsDebugger.cs +++ b/ricaun.RevitTest.Tests/TestsDebugger.cs @@ -11,14 +11,16 @@ //[assembly: AssemblyMetadata("NUnit.Verbosity", "3")] -[assembly: AssemblyMetadata("NUnit.Application", "RICAUN_REVIT_TEST_APPLICATION_DA4R_LOCAL")] -[assembly: AssemblyMetadata("NUnit.Application", "NUNIT_APPLICATION_TEST")] -[assembly: AssemblyMetadata("NUnit.Application", "RICAUN_REVIT_TEST_APPLICATION_DA4R_ONLINE_TEST")] -#if NET -[assembly: AssemblyMetadata("NUnit.Application", "..\\..\\..\\..\\ricaun.RevitTest.Console\\bin\\Debug\\net8.0-windows\\ricaun.RevitTest.Console.exe")] -#else -[assembly: AssemblyMetadata("NUnit.Application", "..\\..\\..\\..\\ricaun.RevitTest.Console\\bin\\Debug\\net48\\ricaun.RevitTest.Console.exe")] -#endif +//[assembly: AssemblyMetadata("NUnit.Application", "RICAUN_REVIT_TEST_APPLICATION_DA4R_LOCAL")] +//[assembly: AssemblyMetadata("NUnit.Application", "NUNIT_APPLICATION_TEST")] +//[assembly: AssemblyMetadata("NUnit.Application", "RICAUN_REVIT_TEST_APPLICATION_DA4R_ONLINE_TEST")] +//#if NET +//[assembly: AssemblyMetadata("NUnit.Application", "..\\..\\..\\..\\ricaun.RevitTest.Console\\bin\\Debug\\net8.0-windows\\ricaun.RevitTest.Console.exe")] +//#else +//[assembly: AssemblyMetadata("NUnit.Application", "..\\..\\..\\..\\ricaun.RevitTest.Console\\bin\\Debug\\net48\\ricaun.RevitTest.Console.exe")] +//#endif + +[assembly: AssemblyMetadata("NUnit.Application", "..\\..\\..\\..\\ricaun.RevitTest.Console\\bin\\Debug\\ricaun.DA4R.NUnit.Console.zip")] //[assembly: AssemblyMetadata("NUnit.Language", "ENU /hosted")] #endif