python3-pytest-console-scripts

Pytest plugin for running Python scripts from within tests

Description

This plugin is quite similar to `subprocess.run()`, but it also has an in-process mode, where the scripts are executed by the interpreter that's running `pytest` (using some amount of sandboxing).

In-process mode significantly reduces the run time of the test suites that run many external scripts. This is speeds up development. In a CI environment subprocess mode can be used to make sure the scripts also work (and behave the same) when run by a fresh interpreter.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/kvas-it/pytest-console-scripts


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-pytest-console-scripts