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.

Reply via email to