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).
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
Hashes for robocorp_log_pytest-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee5a3a366f94831e51ddd41bf4ee4c48d3dd6cfb4c72f8d91044f2ba2adec88d |
|
MD5 | a7eae1d5056a95433fcbe7b6e0543349 |
|
BLAKE2b-256 | ad2439c0272e425d4c70cb1382487c0ce6a335f26303b12542ec926c628fa68d |
Hashes for robocorp_log_pytest-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c319266e03279db5b138b40301b2875a3855282b706ddb4b2e302002201cfb |
|
MD5 | ede49cdb18b73e547e762b981a324bd5 |
|
BLAKE2b-256 | cc042cabb6f40f6f2c6d12f5479da33215e5a189ac9670c42ca405aab7aebb0e |