Skip to main content

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

robocorp_log_pytest-0.0.2.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

robocorp_log_pytest-0.0.2-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page