pytest-timestamper
Pytest plugin to add a timestamp prefix to the pytest output.
➜ myproject python3 -m pytest -v
==================================== test session starts ====================================
platform darwin -- Python 3.9.4, pytest-6.3.0.dev494+g43faea832.d20210528, py-1.10.0, ...
cachedir: .pytest_cache
rootdir: /Users/user/myproject
plugins: timestamper-0.1.dev14+gaacde4a
collected 3 items
[2021-06-06 12:19:06] tests/test_one.py::test_dummy PASSED [ 33%]
[2021-06-06 12:19:06] tests/test_one.py::test_dummy_two PASSED [ 66%]
[2021-06-06 12:19:06] tests/test_two.py::test_another_dummy PASSED [100%]
===================================== 3 passed in 0.02s =====================================
Motivation
For various reasons tests can be slower on some runs than other. However, without a timestamp in front of the test it is not clear to the user how long the current test has been taking. This plugin adds a simple timestamp in front of the pytest output.
Installation
pip install pytest-timestamper
Usage
To activate the plugin one simply needs to install it.
The user can update the format of the prefix with the --prefixfmt and the datetime format with --datefmt.
Metadata
Release files for pytest-timestamper 0.0.10
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-timestamper-0.0.10.tar.gz | 5.2 kB | Without provenance | Details for pytest-timestamper-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_timestamper-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for pytest_timestamper-0.0.10-py3-none-any.whl |
Total release size: 9.8 kB
Release files / pytest-timestamper-0.0.10.tar.gz
| Download URL | pytest-timestamper-0.0.10.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec283fdefc46a9fdb41c1e9badac144902b89bc292e50b97bcaf880e95647977
|
|
BLAKE2b-256 checksum How to use checksums |
896cc5e657db26f3716ad533157bb144cd0a5d14528df4c1c8a876c1c908ad84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / pytest_timestamper-0.0.10-py3-none-any.whl
| Download URL | pytest_timestamper-0.0.10-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6db3507c9fd879e021b87e4516472f97471a5643993bc86dfc2a5e262f6a09c9
|
|
BLAKE2b-256 checksum How to use checksums |
dfc1484fa642565cfcdc27321de151a4e9edc731042c653fea9f05712a0a8904
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for pytest-timestamper 0.0.10
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.