(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func Test_TestCommand_WithConfig(t *testing.T) { |
| 60 | testSuite := "testdata/overwrite.yaml" |
| 61 | if runtime.GOOS == "windows" { |
| 62 | testSuite = "testdata/overwrite_windows.yaml" |
| 63 | } |
| 64 | |
| 65 | out := captureOutput(func() { |
| 66 | context := TestCommandContext{Config: "testdata/default.yaml"} |
| 67 | TestCommand(testSuite, context) |
| 68 | }) |
| 69 | |
| 70 | assert.Contains(t, out, "✓ [local] key from overwrite") |
| 71 | assert.Contains(t, out, "✓ [local] key does not overwrite") |
| 72 | } |
| 73 | |
| 74 | func Test_TestCommand_FailingSuite(t *testing.T) { |
| 75 | err := TestCommand("testdata/test_fail.yaml", TestCommandContext{}) |
nothing calls this directly
no test coverage detected