Registry / testing / pytest-pspec

pytest-pspec

JSON →
library0.0.4pypypi✓ verified 86d ago

A pytest plugin that outputs test results in a RSpec-style format.

pip install pytest-pspec
INSTALL
IMPORT
SIG · PYTEST-PSPEC
P
pytest-pspec
testingpythonv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest_pspec
import pytest
import pytest_pspec
The plugin is automatically registered when installed with pytest. No explicit import needed.

Write standard pytest tests. Run with 'pytest --pspec' to get RSpec-style output.

# sample_test.py def test_should_pass(): assert True def test_should_fail(): assert False # Run with: pytest --pspec
Debug
Known issues
deprecatedPython 2 support is dropped; only Python 3 is supported.
fix
Use Python 3.6 or later.
affects: >=0.0.4
gotchapytest-pspec is not actively maintained. Last release was in 2017. It may have compatibility issues with newer pytest versions.
fix
Consider alternatives like pytest-sugar or pytest-describe.
affects: >=0.0.4
Errors
Common errors & fixes
pytest: error: unrecognized arguments: --pspec
pytest-pspec is not installed in the current environment.
fix
Run 'pip install pytest-pspec' to install the plugin.
ModuleNotFoundError: No module named 'pytest_pspec'
Trying to import the plugin directly as a Python module instead of using it as a pytest plugin.
fix
Do not import pytest_pspec; just install it and use 'pytest --pspec'.
Upgrade
Version history
0.0.4latest on PyPI · released Jun 2, 2020
Audit
Dependencies
pytestrequiredpytest-pspec is a pytest plugin and requires pytest to run.
Agent activity
2 hits · last 30 days
node
2
Resources
pytest-pspec — pip install pytest-pspec · libregistry