Skip to content

Commit

Permalink
Skip FileExplorer tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Jan 20, 2025
1 parent 5ccc810 commit b7ab650
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions v3/internal/fileexplorer/fileexplorer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7ab650

Please sign in to comment.