PyTest plugin for auto-logging of pytest tests with robocorp-log.
Project description
robocorp-log-pytest
robocorp-log-pytest
is a library which provides a pytest plugin which integrates
robocorp-log
with pytest
so that auto-logging is provided for tests run with pytest
.
By default just having it in use without any configuration will generate a ./output/log.html
(and by default at most 5 .robolog
files, each with 50MB may be created).
It's possible to configure the output directory and html output name as well as the maximum number of files and the max log file size.
Note that if the logs actually start rotating information on previous tests may be lost (so, in the testing case it's recommended that the log files always cover the whole test run, which is why the default limits are set to be 50MB * 5).
Ideally for the testing use-case logs would keep the failures, but this isn't currently implemented for robocorp-log (these would need heuristics when removing old files to strip them instead of just remove them).
API Reference
Explore our API for extensive documentation.
Changelog
A list of releases and corresponding changes can be found in the changelog.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file robocorp_log_pytest-0.0.4.tar.gz
.
File metadata
- Download URL: robocorp_log_pytest-0.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95270f27421e5ce0488b44d43c0d70fef1cca72f030318f6fe978c4cc1d77d84 |
|
MD5 | f9de1b7767144f234967f0bc06a54f4e |
|
BLAKE2b-256 | 0eb2bce903dcfa451d9778ce425c3d081eb9342feadba86af4202882834e5042 |
File details
Details for the file robocorp_log_pytest-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: robocorp_log_pytest-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36906dbcbcb8f5def8fb0a2c25083295534f3029967def0ad488f8a1bf9ca093 |
|
MD5 | 2522fdd77bffb679f6788fb6a0989693 |
|
BLAKE2b-256 | d090ba117161b71df7a96d0d45e90f8203b87437079c8e9f8eb2dd0b70a1ac3d |