FreeBSD.software
Home/devel/p5-Test-Command-Simple

p5-Test-Command-Simple

0.05devel

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 IPC::Open3, 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 Test::Cmd, but I think the interface to this is much simpler. Tests also plug directly into the Test::Builder framework, which plays nice with Test::More. As compared to Test::Command, this module is simpler, relying on the user to feed rc, stdout, and stderr to the appropriate other tests, presumably in Test::More, but not necessarily.

$pkg install p5-Test-Command-Simple
metacpan.org/release/Test-Command-Simple
Origin
devel/p5-Test-Command-Simple
Size
16.4KiB
License
ART10, GPLv1+
Maintainer
perl@FreeBSD.org
Dependencies
1 packages
Required by
0 packages

Dependencies (1)