News for hackers. Stuff that matters.
Re:Code coverage for Go integration tests by donatj on Thursday March 09, 2023 @07:23AM (#35080508)
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

There are no comments on this comment yet.