BSD Ports

devel/py-pytest-console-scripts 1.4.1_1 DragonFly

Pytest plugin for testing console scripts

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
17.3 KiB, 69.3 KiB installed

Description

Pytest-console-scripts is a pytest plugin for running python scripts from within tests. It's 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 the CI environment subprocess mode can be used to make sure the scripts also work (and behave the same) when run by a fresh interpreter.

In the other systems

SystemPortVersion
DragonFlydevel/py-pytest-console-scripts1.4.1_1
FreeBSDdevel/py-pytest-console-scripts1.4.1_1
MidnightBSDdevel/py-pytest-console-scripts1.4.1_2

Install

Binary package:

pkg install py311-pytest-console-scripts

From DPorts:

cd /usr/dports/devel/py-pytest-console-scripts && make install clean

Dependencies

Run dependencies 2

No port depends on this one.