scripttest icon indicating copy to clipboard operation
scripttest copied to clipboard

Utilities to help with testing command line scripts

scripttest

.. image:: https://img.shields.io/pypi/v/scripttest.svg :target: https://pypi.python.org/pypi/scripttest/ :alt: Latest Version

.. image:: https://github.com/pypa/scripttest/actions/workflows/ci.yaml/badge.svg :target: https://github.com/pypa/scripttest/actions/workflows/ci.yaml :alt: Build Status

scripttest is a library to help you test your interactive command-line applications.

With it you can easily run the command (in a subprocess) and see the output (stdout, stderr) and any file modifications.

  • The source repository <https://github.com/pypa/scripttest>_.
  • The documentation <https://scripttest.readthedocs.io/>_.