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
Release history Release notifications | RSS feed
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
Close
Hashes for pytest_jira_xray-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d3b2873717383d3aac7fbc278589bf2e79272c224af7c16bb2494e2a73260e4 |
|
MD5 | fb52cae8992c4f97930b80312fcc0829 |
|
BLAKE2b-256 | 57fd0c98facdc6ce7deb5f0b51a282c0a713a26cee0f6187bd7594f844d3ba13 |