{"library":"pytest-jira-xray","title":"Pytest JIRA XRAY Plugin","description":"pytest-jira-xray is a pytest plugin that facilitates integration of test results with Atlassian JIRA's XRAY Test Management tool. It allows users to export pytest test results to XRAY JSON format or directly upload them to JIRA, associating tests with JIRA issues and updating test plans/executions. The current version is 0.9.3, and it appears to be actively maintained with releases tied to new features or bug fixes.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install pytest-jira-xray"],"cli":null},"imports":["import pytest"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# my_test.py\nimport pytest\n\n@pytest.mark.jira(key='TP-100', test_key='TEST-456')\ndef test_example_success():\n    assert True\n\n@pytest.mark.jira(key='TP-100', test_key='TEST-457')\ndef test_example_failure():\n    assert False\n\n# pytest.ini\n# [pytest]\n# jira-url = https://your-jira-instance.com\n# jira-user = your-username\n# jira-password = your-password\n\n# Run from terminal:\n# export JIRA_URL='https://your-jira-instance.com'\n# export JIRA_USER='your-username'\n# export JIRA_PASSWORD='your-password'\n# pytest --xray-json=xray_report.json --jira-url \"${JIRA_URL}\" --jira-user \"${JIRA_USER}\" --jira-password \"${JIRA_PASSWORD}\" --testplan-key \"TP-100\" --testexecution-key \"TP-EXEC-123\" --upload-xray-results","lang":"python","description":"This quickstart demonstrates creating a test file with JIRA markers and running pytest to generate an XRAY JSON report and upload results to a specified Test Plan/Execution. Authentication details (URL, user, password) can be provided via command-line arguments, environment variables, or configured in `pytest.ini`. For security, using environment variables for sensitive data is recommended.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}