Skip to content

Commit 0cd90f8

Browse files
committed
fix(test): use .exe extension on Windows for integration tests
- Fixes TestEndToEndIntegration failure on Windows - go build produces cimis.exe on Windows but test was looking for cimis - Use platform-appropriate executable name based on runtime.GOOS
1 parent bfbd9e2 commit 0cd90f8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cmd/cimis/integration_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ func TestEndToEndIntegration(t *testing.T) {
2020
_, testFile, _, _ := runtime.Caller(0)
2121
projectRoot := filepath.Join(filepath.Dir(testFile), "..", "..")
2222

23-
cliPath := filepath.Join(tmpDir, "cimis")
23+
// Use platform-appropriate executable name
24+
exeName := "cimis"
25+
if runtime.GOOS == "windows" {
26+
exeName = "cimis.exe"
27+
}
28+
cliPath := filepath.Join(tmpDir, exeName)
2429
buildCmd := exec.Command("go", "build", "-o", cliPath, "./cmd/cimis")
2530
buildCmd.Dir = projectRoot
2631
if output, err := buildCmd.CombinedOutput(); err != nil {

0 commit comments

Comments
 (0)