(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestHelpUsageInfoCommand(t *testing.T) { |
| 50 | stdout, err := wsk.RunCommand("-h") |
| 51 | assert.Equal(t, nil, err, "The command -h failed to run.") |
| 52 | assert.Contains(t, string(stdout), "Usage:", "The output of the command -h does not contain \"Usage\".") |
| 53 | assert.Contains(t, string(stdout), "Flags:", "The output of the command -h does not contain \"Flags\".") |
| 54 | assert.Contains(t, string(stdout), "Available Commands:", |
| 55 | "The output of the command -h does not contain \"Available Commands\".") |
| 56 | assert.Contains(t, string(stdout), "--help", "The output of the command -h does not contain \"--help\".") |
| 57 | } |
| 58 | |
| 59 | func TestHelpUsageInfoCommandLanguage(t *testing.T) { |
| 60 | os.Setenv("LANG", "de_DE") |
no test coverage detected