RECENT POSTS

P5-test-command-simple

May 26, 2018

Test external commands (nearly) as easily as loaded modules

This test module is intended to simplify testing of external commands. It does so by running the command under IPCOpen3, closing the stdin immediately, and reading everything from the command’s stdout and stderr. It then makes the output available to be tested.

It is not yet? as feature-rich as TestCmd, but I think the interface to this is much simpler. Tests also plug directly into the TestBuilder framework, which plays nice with TestMore.

As compared to TestCommand, this module is simpler, relying on the user to feed rc, stdout, and stderr to the appropriate other tests, presumably in TestMore, but not necessarily.

WWW http//search.cpan.org/dist/Test-Command-Simple/