Skip to main content

Plugin installation

To install this library for use please enter the following command:

$ pip install pytest-xrayjira

To use this plugin

To take advantage of the pytest xrayjira plugin, use markers from pytest to associate a test function with a test key:

import pytest

@pytest.mark.xrayjira(test_key="KEY-12345")
def test_my_function():
    assert True == True

Enable the plugin by passing the extra options to the command line when invoking the pytest runner:

$ pytest . --upload-results-to-jira-xray

It is important that the environment variables XRAY_API_CLIENT_ID and XRAY_API_CLIENT_SECRET are set for pytest_xrayjira to sucessfully post results to the Xray API.

This will create a new test execution which will include all tests that were run.

Maintenance notes

Please make sure that any new releases of the library use an incremented version number from the last. The following guidance is used to properly version bump this library {major}.{minor}.{patch}.

Major versions are increased for any new overall library features or general API breaking changes.

Minor versions are increased for any new features added or implementation changes to existing APIs.

Patch versions are increased for any bug fixes and non-breaking changes.

To automatically bump versions, best to install bump2version, then enter either of the following on the command line:

$ bump2version major

or

$ bump2version minor

or

$ bump2version patch

These commands automatically commits and tags a new version. Make sure to push tags to the server with

$ git push && git push --tags

Metadata

Release files for pytest-xrayjira 1.0.2

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

Source distribution (sdist)

Source distribution for pytest-xrayjira 1.0.2
File Size Uploaded
pytest_xrayjira-1.0.2.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-xrayjira 1.0.2
File Interpreter ABI Platform
pytest_xrayjira-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / pytest_xrayjira-1.0.2.tar.gz

Download URL pytest_xrayjira-1.0.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b9ac192c6f84415ac2551e26a8aa53fbc4b76cddd50fae4ad55972f1a92bec4
BLAKE2b-256 checksum
How to use checksums
9ac006f430b6c756668410ef41b5f7ee950ad9fc27eff4919daf8c8e52edeba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release files / pytest_xrayjira-1.0.2-py3-none-any.whl

Download URL pytest_xrayjira-1.0.2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9757036b75b8a0c22122afb4a697583ccec55f4f3ecfaab559f22f8dc6f4af3
BLAKE2b-256 checksum
How to use checksums
6daee72042dea089eb14da23e6814b17c6020a1182f19e8d7c726adbae08b0e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0

2 release files

0.10.7

2 release files

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