diff --git a/cmd/xgo/test-explorer/run.go b/cmd/xgo/test-explorer/run.go index a647e639..c1b22d13 100644 --- a/cmd/xgo/test-explorer/run.go +++ b/cmd/xgo/test-explorer/run.go @@ -72,6 +72,9 @@ type runSession struct { func formatPathArgs(paths []string) []string { args := make([]string, 0, len(paths)) for _, relPath := range paths { + if filepath.Separator != '/' { + relPath = strings.ReplaceAll(relPath, string(filepath.Separator), "/") + } args = append(args, "./"+relPath) } return args