Metadata-Version: 2.2
Name: qmetry-pytest
Version: 1.0.1
Summary: A PyTest plugin that provides seamless integration with QMetry Test Management Platform.
Home-page: https://github.com/prashanth-sams/qmetry-pytest
Author: Prashanth Sams
Author-email: sams.prashanth@gmail.com
Maintainer: Prashanth Sams
Maintainer-email: sams.prashanth@gmail.com
License: MIT
Keywords: qmetry,qmetry pytest,reporter,report,pytest,py.test,jira,cucumber,xml
Classifier: Framework :: Pytest
Classifier: Topic :: Software Development :: Testing
Classifier: Programming Language :: Python
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: maintainer
Dynamic: maintainer-email
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# QMetry PyTest

A PyTest plugin that provides seamless integration with QMetry Test Management Platform.

## Features

- Automatically uploads test results to QMetry
- Generates test cycles and updates test case statuses seamlessly
- Supports JUnit XML reports for Automation API
- Supports Cucumber JSON reports for Automation API

## Installation

```
pip install qmetry-pytest
```

## Configuration

You'll need to create a qmetry.properties file in your project root:
```
qmetry.enabled=true
qmetry.url=<your_qmetry_url>
qmetry.authorization=<your_authorization>

qmetry.automation.enabled=true
qmetry.automation.apikey=<your_api_key>
qmetry.automation.format=<junit/cucumber>
qmetry.automation.resultfile=<your_report_path/filename.xml/json>
```

## Test Example

```
# test_example.py
import pytest

@pytest.mark.qid("TC-123")
def test_example():
    assert True

@pytest.mark.qid("TC-124")
def test_another_example():
    assert 1 + 1 == 2
```

## Test Execution

```
pytest --qmetry
```

### Generate XML report before upload
```
pytest --qmetry --junitxml=report/results.xml
```

## Best Practices

- No markers are required for the automation flow.
- Ensure secure authentication and keep the configuration updated in `qmetry.properties`.
- Remember to include --qmetry as a command-line argument during test execution.
