Browse Source

Enable visual tests on all runtimes by removing platform-specific assertions

Marcin Ziąbek 5 months ago
parent
commit
4436f53ed9
1 changed files with 11 additions and 11 deletions
  1. 11 11
      Source/QuestPDF.VisualTests/TestsSetup.cs

+ 11 - 11
Source/QuestPDF.VisualTests/TestsSetup.cs

@@ -9,17 +9,17 @@ namespace QuestPDF.VisualTests
         [OneTimeSetUp]
         public static void Setup()
         {
-            var currentRuntime = NativeDependencyProvider.GetRuntimePlatform();
-
-            if (currentRuntime != "osx-arm64")
-            {
-                Assert.Ignore(
-                    "Visual tests are performed based on osx-arm64 runtime output. " +
-                    "Each operating system (Windows, Linux, macOS) uses different font analysis and text rendering libraries. " +
-                    "Moreover, each CPU architecture may produce slightly different floating-point calculation results. " +
-                    "This may lead to different results even though the same code and configuration are used. " +
-                    "Therefore, visual tests are not expected to pass entirely on other operating systems or CPU architectures.");
-            }
+            // var currentRuntime = NativeDependencyProvider.GetRuntimePlatform();
+            //
+            // if (currentRuntime != "osx-arm64")
+            // {
+            //     Assert.Ignore(
+            //         "Visual tests are performed based on osx-arm64 runtime output. " +
+            //         "Each operating system (Windows, Linux, macOS) uses different font analysis and text rendering libraries. " +
+            //         "Moreover, each CPU architecture may produce slightly different floating-point calculation results. " +
+            //         "This may lead to different results even though the same code and configuration are used. " +
+            //         "Therefore, visual tests are not expected to pass entirely on other operating systems or CPU architectures.");
+            // }
                 
             QuestPDF.Settings.License = LicenseType.Community;
             QuestPDF.Settings.UseEnvironmentFonts = false;