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.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

robocorp_log_pytest-0.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file robocorp_log_pytest-0.0.3.tar.gz.

File metadata

  • Download URL: robocorp_log_pytest-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for robocorp_log_pytest-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fde2e635f929a6e9a0c8a761c943fe7b28d7198c14198ab1d6f12cbc76ab95e7
MD5 e9c3da5a9b4b816cb36d48850c717013
BLAKE2b-256 cf74bc6ed299cb94d903b1512ca3be25e9ab3d21d2482c6b594b51148e35c3b2

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_log_pytest-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for robocorp_log_pytest-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 00b9b6b00d2b433518707ff3da06ff291ca96a3468f659c888e6734ea3221a6b
MD5 a350b335ca5572cdb4a5e8f14828e3c2
BLAKE2b-256 cb6d05ef7de8705930b93e45f02a19de12a314ca8e1ad9c129a55f28228629c8

See more details on using hashes here.

Provenance

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