Generate json reports along with specified metadata defined in test markers.
Project description
pytest-railflow-testrail-reporter
pytest-railflow-testrail-reporter is a pytest plugin generates json outputs with predefined metadata as json attributes defined during the tests.
It is designed for generating testrail outputs.
Requirements
In order to use pytest-railflow-testrail-reporter plugin, following prerequsites should be met.
- Python 2.7, 3.4 or greater
- Pytest
Installation
Using Pip
To install the pytest-railflow-testrail-reporter plugin using pip,run the following command in terminal:
pip install pytest-railflow-testrail-reporter
This will install the plugin to the system.
Usage
Currently the plugin supports the metadata attributes given below. All other undefined metadata attributes will be rejected with a warning.
| Function level Attributes | Class level Attributes |
|---|---|
| jira_ids | case_fields |
| case_fields | result_fields |
| result_fields | case_type |
| testrail_ids | case_priority |
| case_type | smart_failure_assignment |
| case_priority |
To run the test, enter the following command in the terminal from test directory.
pytest --jsonfile output.json
Examples
Please check examples for more information and sample tests.
License
This software is licensed under the MIT license
See License file for more information.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-railflow-testrail-reporter-0.1.8.tar.gz.
File metadata
- Download URL: pytest-railflow-testrail-reporter-0.1.8.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3094a6e9fb5d181f4364ae8a6c9e476e45c1eeb5e420ea314e9d8484a9ea207
|
|
| MD5 |
b32a1bb9c3b1265ab5c9701655f82cd7
|
|
| BLAKE2b-256 |
950cd58eba503242409314e71778a6e1a7771363577b84ddede90c4a03f8fac9
|
File details
Details for the file pytest_railflow_testrail_reporter-0.1.8-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_railflow_testrail_reporter-0.1.8-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42af24dcaa5ab32a4f911f178ed8afd1afe5dbf44752fa72f4ae130ceae9bf2c
|
|
| MD5 |
50d125cd62d984e0d2fc9363c813933a
|
|
| BLAKE2b-256 |
84c40f83bd532de95ac46ebfdcae873a13da7e88b80de448f7502dee689410eb
|