Generate json reports along with specified metadata defined in test markers.
Project description
pytest-railflow-testrail-reporter
Pytest-Railflow-Testrail-reporter is the 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 |
---|---|
testrail_user | testrail_user |
description | testrail_project |
jira_id | case_fields |
test_path | result_fields |
case_fields | test_path |
result_fields | case_type |
test_mappings | case_priority |
case_type | smart_assign |
case_priority |
To run the test, enter the following command in the terminal from test directory.
pytest --jsonfile output.json
Please check examples for more information and sample tests.
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
Hashes for pytest-railflow-testrail-reporter-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db69f940d65b80fb90202a0254c64445403125d4b2425dc6916e833a53a1e312 |
|
MD5 | 591d5b869c858658cbb5bb9dd9963184 |
|
BLAKE2b-256 | 0190a75c33dfa82a3f641c2aab96a5457de20ea8ad04c721578d6ba3ac2831f7 |
Hashes for pytest_railflow_testrail_reporter-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d02cb497d1ebed9360770ee6decf536e0866e417a6106e52b08cb23bba786b9e |
|
MD5 | 4015df5dea3ab8ba6bc278a534c3313b |
|
BLAKE2b-256 | 1c0ffb2f5cc2860c8f0c5cef8170a28e1532f68c9ef2edce791a8dfa93766593 |