TestsSetup.cs 1.2 KB

123456789101112131415161718192021222324252627282930
  1. using QuestPDF.Helpers;
  2. using QuestPDF.Infrastructure;
  3. namespace QuestPDF.VisualTests
  4. {
  5. [SetUpFixture]
  6. public class TestsSetup
  7. {
  8. [OneTimeSetUp]
  9. public static void Setup()
  10. {
  11. // var currentRuntime = NativeDependencyProvider.GetRuntimePlatform();
  12. //
  13. // if (currentRuntime != "osx-arm64")
  14. // {
  15. // Assert.Ignore(
  16. // "Visual tests are performed based on osx-arm64 runtime output. " +
  17. // "Each operating system (Windows, Linux, macOS) uses different font analysis and text rendering libraries. " +
  18. // "Moreover, each CPU architecture may produce slightly different floating-point calculation results. " +
  19. // "This may lead to different results even though the same code and configuration are used. " +
  20. // "Therefore, visual tests are not expected to pass entirely on other operating systems or CPU architectures.");
  21. // }
  22. QuestPDF.Settings.License = LicenseType.Community;
  23. QuestPDF.Settings.UseEnvironmentFonts = false;
  24. VisualTestEngine.ClearActualOutputDirectories();
  25. }
  26. }
  27. }