INNER CODE UNIT · Go

testDdevTraditionalInstallation

ddev/ddev · winpkg/installer_test.go:804

func testDdevTraditionalInstallation(t *testing.T) {
	require := require.New(t)
	t.Logf("Testing ddev installation on Windows")

	// Use full paths since the current process doesn't see the PATH update from the installer
	localAppData := os.Getenv("LOCALAPPDATA")
	ddevPath := filepath.Join(localAppData, "Programs", "DDEV", "ddev.exe")
	hostnamePath := filepath.Join(localAppData, "Programs", "DDEV", "ddev-hostname.exe")

	// Verify files exist in expected per-user location
	require.True(fileutil.FileExists(ddevPath), "ddev.exe not found at %s", ddevPath)
	require.True(fileutil.FileExists(hostnamePath), "ddev-hostname.exe not found at %s", hostnamePath)

	// Test ddev version using full path
	out, err := exec.RunHostCommand(ddevPath, "version")
	require.NoError(err, "ddev version failed: %v, output: %s", err, out)
	require.Contains(out, "DDEV version")
	t.Logf("ddev version output: %s", out)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…