From b7ab650f360a0b49483bf33299a6a81eaae3f316 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 20 Jan 2025 20:59:17 +1100 Subject: [PATCH] Skip FileExplorer tests in CI --- v3/internal/fileexplorer/fileexplorer_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/v3/internal/fileexplorer/fileexplorer_test.go b/v3/internal/fileexplorer/fileexplorer_test.go index 0b7012636..8f7a9b39f 100644 --- a/v3/internal/fileexplorer/fileexplorer_test.go +++ b/v3/internal/fileexplorer/fileexplorer_test.go @@ -11,7 +11,15 @@ import ( "github.com/wailsapp/wails/v3/internal/fileexplorer" ) +// Credit: https://stackoverflow.com/a/50631395 +func skipCI(t *testing.T) { + if os.Getenv("CI") != "" { + t.Skip("Skipping testing in CI environment") + } +} + func TestFileExplorer(t *testing.T) { + skipCI(t) // TestFileExplorer verifies that the OpenFileManager function correctly handles: // - Opening files in the native file manager across different platforms // - Selecting files when the selectFile parameter is true