pytest-session_to_file
pytest-session_to_file is a py.test plugin that save failure or test session information to a file pass that can be invoked as at command line when launching py.test run. It put in a file exactly what pytest return to stdout.
Installation
Install it with pip as follow :
pip install pytest-pytest_session_to_file
Usage
Once the plugin is installed edit your conftest.py and insert in the top of the file :
pytest_plugins = ‘pytest_session_to_file’
Then you can launch your test with the new option –session_to_file= like this :
py.test –session_to_file=FILENAME
If you don’t want to edit your conftest.py you can invoque py.test like this :
py.test -p pytest_session_to_file –session_to_file=FILENAME
At the end of the test execution you should obtain a text file with the content of stdout of py.test under the filename provided that look like this :
============== test session starts ====================
…
============== 2 passed in 34.70 seconds ==============
TODO: Write test
Inspire by: _pytest.pastebin
Ref: https://github.com/pytest-dev/pytest/blob/master/_pytest/pastebin.py
Platforms: All
Version: 0.1.0
Date: 30 sept. 2015 11:25
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Copyright (C) 2015 Richard Vézina <ml.richard.vezinar@gmail.com>
Metadata
Release files for pytest-session_to_file 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-session_to_file-0.1.2.tar.gz | 2.1 kB | Without provenance | Details for pytest-session_to_file-0.1.2.tar.gz |
Release files / pytest-session_to_file-0.1.2.tar.gz
| Download URL | pytest-session_to_file-0.1.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1250d157dfc6cceffb11c49f4e9ce471996b3296b9089ba7ca3a76520f02afc
|
|
BLAKE2b-256 checksum How to use checksums |
b149282a3d1f42535f8438d5666bb9ae279c3e44f40b7654d40df92f4524452c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytest-session_to_file 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.