Skip to main content

pytest plugin to integrate tests with JIRA XRAY

Project description

pytest-jira-xray

PyPi Build Status

pytest-jira-xray is a plugin for pytest that uploads test results to JIRA XRAY.

Installation

pip install pytest-jira-xray

or

python setup.py install

Usage

Mark a test with JIRA XRAY test ID

# -- FILE: test_example.py
import pytest

@pytest.mark.xray('JIRA-1')
def test_one():
    assert True

Set system environments (Basic authentication):

export XRAY_API_BASE_URL=<jira URL>
export XRAY_API_USER=<jria username>
export XRAY_API_PASSWORD=<user password>

To disable SSL certificate verification, at the client side (no case-sensitive):

export XRAY_API_VERIFY_SSL=False

Or you can provide path to certificate file

export XRAY_API_VERIFY_SSL=</path/to/PEM file>

Upload results to new test execution:

pytest . --jira-xray

Upload results to existing test execution:

pytest . --jira-xray --execution TestExecutionId

Upload results to existing test plan (new test execution will be created):

pytest . --jira-xray --testplan TestPlanId

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

If you're not sure about the file name format, learn more about wheel file names.

pytest_jira_xray-0.1.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest_jira_xray-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pytest_jira_xray-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for pytest_jira_xray-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61fd6d3ff1cc534960eeea30b6dc49ca0f92979e767c067a7ec892ad5400f95c
MD5 679b784e581ccd349c0b210c6c02679c
BLAKE2b-256 536c87ff7b7315dcf31480f9443d255e1ecb0de16b26ad0949c023fd0b02c077

See more details on using hashes here.

Supported by

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