Skip to main content

pytest plugin to integrate tests with JIRA XRAY

Project description

pytest-jira-xray

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 environment:

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

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

pytest_jira_xray-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_jira_xray-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ad41442086813b0e5e5b8e9c9485ecb8e3b27ac8f457f389eba5ecefc3f81ac
MD5 3c076b5592fd46453f8b4cfdbcf64795
BLAKE2b-256 fd65ad39797fd1424765129cdceb4c2fec37489e00c190052a39b28320938124

See more details on using hashes here.

Supported by

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