scripttest is a library to help you test your interactive command-line
With it you can easily run the command (in a subprocess) and see the
output (stdout, stderr) and any file modifications.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.