(t *testing.T)
| 143 | } |
| 144 | |
| 145 | func TestIntegrateCmd_RunE_Register_E2E(t *testing.T) { |
| 146 | if completion.CurrentShell() == completion.NotSupported && runtime.GOOS != "windows" { |
| 147 | if _, err := os.Stat("/bin/bash"); err != nil { |
| 148 | t.Skip("no usable bash on this host; integrate test requires bash/zsh/powershell") |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | homeDir, stderr, err := runIntegrate(t) |
| 153 | if err != nil { |
| 154 | t.Fatalf("integrate should succeed: %v\nstderr:\n%s", err, stderr) |
| 155 | } |
| 156 | |
| 157 | for _, p := range integrateArtifacts(homeDir) { |
| 158 | if !fileio.PathExists(p) { |
| 159 | t.Errorf("integrate should create %s", p) |
| 160 | } |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | func TestIntegrateCmd_RunE_Remove_E2E(t *testing.T) { |
| 165 | if runtime.GOOS != "windows" { |
nothing calls this directly
no test coverage detected