MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / TestHelpUsageInfoCommand

Function TestHelpUsageInfoCommand

tests/src/integration/command_test.go:49–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func 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
59func TestHelpUsageInfoCommandLanguage(t *testing.T) {
60 os.Setenv("LANG", "de_DE")

Callers 1

Calls 1

RunCommandMethod · 0.80

Tested by

no test coverage detected