Re: [dev] Suckless unit testing in C?
On Wed, Feb 25, 2015 at 07:45:58AM +0100, Anselm R Garbe wrote:
[...]
> If you apply the Unix principle correctly, main() is your unit test.
>
> All you need is creating test input, save the test output and whenever
> you call main() with the same test input, you just check for
> regressions in the test output compared to the expected test output.
What if you're trying to test a program that requires network connectivity?
It'd be good to be able to mock the networking stuff.
Received on Wed Feb 25 2015 - 08:04:36 CET
This archive was generated by hypermail 2.3.0
: Wed Feb 25 2015 - 08:12:07 CET