Add integration tests for all command usage examples in the binary #1889
Labels
area/e2e
kind/feature
New feature or request
kind/proposal
Issues or PRs related to proposals.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Feature request
Currently, if you type
kn <resource> <action> --help
, you will get help text with some examples. However, these examples don't always stay up to date as parts of the knative project change (For example, #1885). We should build out a systematic way to test all of the examples we provide within the help flags in the kn binary.One idea would be to create a
Example
struct sort of like below:We could then:
Command
andComment
fields to construct the example usage currently displayed in the help text.Use case
This would ensure that all of the commands we provide in kn work correctly and are up to date.
/kind proposal
/area e2e
The text was updated successfully, but these errors were encountered: