Test::Cmd

Test::Cmd provides a framework for portable, automated testing of executable commands and scripts (in any language, not just Perl), especially those that interact with the file system. In addition to running tests and evaluating conditions, the Test::Cmd module manages and cleans up temporary workspace directories, and provides methods for creating files and directories from in-line data (here-documents).

Tags Software Development Testing Libraries Perl Modules
Licenses Artistic
Implementation Perl

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  07 Sep 2001 03:48
  • Rrelease-after

Changes: Test::Cmd::Common module and a wrapper subclass was added to handle common exceptions. Explicit examples of using Test::Cmd with Test::Harness, Test::Unit, and on its own were added to the documentation. Minor fixes to some routines for handling absolute-path end cases were added.

  • Rrelease-mid
  •  16 Jun 2001 18:10
  • Rrelease-after

Changes: The run() method has been fixed so that it can be used to execute a subsidiary executable or script that's not in the same interpreted language as the script being tested.

  • Rrelease-mid
  •  12 Jun 2001 03:10
  • Rrelease-after

Changes: Fixes for a bug that only allowed an interpreter to be specified for the run() method if a program was specified, and for a bug that prevented workdir() from returning the absolute path name of a working directory specified as a relative path.

  • Rrelease-mid
  •  30 May 2001 15:55
  • Rrelease-after

Changes: New diff_exact() and diff_regex() methods that return diff(1)-like output when file contents don't match what's expected, and fixes for backwards compatibility with Perl 5.003 and for $TMPDIR specifications that don't match what Cwd::cwd() returns (due to symbolic links or missing WIN32 drive letters).

  • Rrelease-mid
  •  30 Jan 2001 06:14
  • Rrelease-after

    Changes: Separate methods were created to match results against exact text or regular expressions. The match method was changed so that it now calls a registered subroutine, which can be user-supplied or one of the underlying match methods. The default, for backwards compatibility, is the regular expression match.

    Fa7519d3def6bcd2e87779f2743eb131_thumb

    Project Spotlight

    MathGL

    A library for making high-quality scientific graphics.

    No-screenshot

    Project Spotlight

    Very Simple Control Protocol & Friends

    A collection of tools for (home) automation.