Skip to main content

pytest plugin for publish results to opentmi

Project description

pytest reporting plugin for opentmi

Unit tests PyPI version

pytest plugin to upload results to opentmi server. Plugin collect various metadata against opentmi Result -schema. User can extend details using pytest metadata plugin.

Usage

Install using pip:

pip install pytest-opentmi

plugin is enabled by using --opentmi CLI argument.

Running with pytest:

pytest --opentmi <host> --opentmi_token <token> [--opentmi_store_logs]

Configuration

  • env variable OPENTMI_MAX_EXEC_NOTE_LENGTH can be used to cut long failure notes. Default 1000 characters.

metadata

module utilize some special pytest metadata keys. Usage:

pytest --metadata <KEY> <VALUE> ...

Keys:

  • Device Under Test:

    • DUT_TYPE (hw, simulator)
    • DUT_SERIAL_NUMBER
    • DUT_VERSION
    • DUT_VENDOR
    • DUT_MODEL
    • DUT_PROVIDER
  • Software Under Test:

    • SUT_COMPONENT (array)
    • SUT_FEATURE (array)
    • SUT_COMMIT_ID
    • SUT_BRANCH

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

pytest-opentmi-0.4.2.tar.gz (17.4 kB view hashes)

Uploaded Source

Built Distribution

pytest_opentmi-0.4.2-py2.py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 2 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