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
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
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