Skip to main content

pytest-zigzag

See Build Status on Travis CI

Extend py.test for RPC OpenStack testing.

Quick Start Guide

  1. You can install “pytest-zigzag” via pip from PyPI

    $ pip install pytest-zigzag
  2. Or you can install “pytest-zigzag” via pip from disk (assumes you’re in the root of the repo):

    $ pip install -e .

Usage

Once installed the plug-in will automatically be loaded by all py.test test runs executed in the Python environment in which the pytest-zigzag was installed.

Features

JUnitXML RPC Specific Properties

If a user executes py.test tests with the --junitxml and with this plug-in installed, the resulting XML log file will contain a test suite properties element. The properties element will contain information gathered about the test run fetched from the local environment.

Configuration

You can supply a json config to this plugin containing a dictionary. Each key / value will become a property name and value on the test suite node of the resulting xml. There is one required config: pytest_zigzag_env_vars. This should be a json object where the keys are the environment variable names to be collected, if you set value to a string that value will be used. If the value is null it will be pulled from the environment.

The location of the config file can be specified in two ways:

  1. In a pytest ini file:

    [pytest]
    pytest-zigzag-config=/path/to/config/file
  2. Explicitly on the command line:

    pytest /path/to/test_test.py --pytest-zigzag-config=/path/to/config/file

Any property defined in the config file can be overriden by creating an environment variable of the same name. see this config_property_overrides.md

Contributing

See CONTRIBUTING.rst for more details on developing for the “pytest-zigzag” project.

Release Process

See release_process.rst for information on the release process for ‘pytest-zigzag’

Credits

This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.

History

Metadata

Release files for pytest-zigzag 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pytest-zigzag 1.1.1
File Interpreter ABI Platform
pytest_zigzag-1.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / pytest_zigzag-1.1.1-py2.py3-none-any.whl

Download URL pytest_zigzag-1.1.1-py2.py3-none-any.whl
Size 11.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4b6fe443ed15a30be65fdc1dd0fe468563acd176c9b1221c2006b0459e67a920
BLAKE2b-256 checksum
How to use checksums
25e98ff97027687ccad7e56e6f3e5e1f851567d32dc91be625f42af3d6c4fcf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.10

Release history Release notifications | RSS feed

This release

1.1.1 This release

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.2.0

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page