3 ms·
Oh, interesting. Full on integration testing for Go CLI apps is an area in which I am sorely lacking. Does anyone have recommendations of tooling to generally
by donatj 4y ago
Oh, interesting. Full on integration testing for Go CLI apps is an area in which I am sorely lacking.
Does anyone have recommendations of tooling to generally help instrument testing CLI tools? Hopefully better than what I’ve done thus far which is basically a shell script of
./mybinary <<< $INPUT > output.txt 2> error.txt
diff expected-output.txt output.txt
diff expected-error.txt error.txt