Skip FileExplorer tests in CI

This commit is contained in:
Lea Anthony 2025-01-20 20:59:17 +11:00
commit b7ab650f36
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

View file

@ -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