Fix #1449: add e2e check on help option
diff --git a/e2e/common/offline_commands_test.go b/e2e/common/offline_commands_test.go
index a0b0e9c..74956ce 100644
--- a/e2e/common/offline_commands_test.go
+++ b/e2e/common/offline_commands_test.go
@@ -39,6 +39,12 @@
assert.Nil(t, traitCmd.Execute())
}
+func TestKamelHelpOptionWorksOffline(t *testing.T) {
+ traitCmd := Kamel("run", "Xxx.java", "--help")
+ traitCmd.SetOut(ioutil.Discard)
+ assert.Nil(t, traitCmd.Execute())
+}
+
func TestKamelCompletionWorksOffline(t *testing.T) {
bashCmd := Kamel("completion", "bash", "--config", "non-existent-kubeconfig-file")
bashCmd.SetOut(ioutil.Discard)