Testing my kong binary #370
TheKushIsGood
started this conversation in
General
Replies: 1 comment
-
|
Of course. I usually test it with something like this: parser, err := kong.New(&CLI{}, kong.Exit(func(n int) {
if n != 0 { t.Fatalf("exited with %d exit status", n) }
})) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Once the tool is built using kong, is there a good way to test the command line options/flags/interface? I am thinking of a way to do it as I have a fairly large tool with many options/arguments/flags.
Beta Was this translation helpful? Give feedback.
All reactions