Skip to main content

Extend py.test for RPC OpenStack testing.

Project description

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 configure this plugin to tell it which ‘ci-environment’ you are using when you execute this test. This will let pytest-zigzag know what information to collect inside of the junit.xml. If no configuration is found it will assume that you are using asc.

  1. You can configure in an ini file that is readable by pytest (setup.cfg, pytest.ini, tox.ini):

    [pytest]
    ci-environment=mk8s
  2. You can configure via the command line:

    pytest /path/to/test_test.py --ci-environment=asc
  3. The current available options are ‘asc’ & ‘mk8s’

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytest_zigzag-0.1.4-py2.py3-none-any.whl (6.4 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