(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func Test_TestCommand(t *testing.T) { |
| 34 | err := TestCommand("commander.yaml", TestCommandContext{}) |
| 35 | |
| 36 | if runtime.GOOS == "windows" { |
| 37 | assert.Contains(t, err.Error(), "Error open commander.yaml:") |
| 38 | } else { |
| 39 | assert.Equal(t, "Error open commander.yaml: no such file or directory", err.Error()) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func Test_TestCommand_ShouldUseCustomFile(t *testing.T) { |
| 44 | out := captureOutput(func() { |
nothing calls this directly
no test coverage detected