Skip to main content

Generate json reports along with specified metadata defined in test markers.

Project description

Testing Cov MIT license

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

Install Requirements first using:

pip install -r requirements.txt

Using Pip

To install the pytest-railflow-testrail-reporter plugin using pip open the terminal in root folder where setup.py is located.

Run the following command in terminal:

pip install .

This will install the plugin to python package library.

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

author

author

description

case_fields

jira_id

result-fields

test_path

test_path

case_fields

case-type

result-fields

case-priority

id-mappings

case-type

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-railflow-testrail-reporter-0.1.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

pytest_railflow_testrail_reporter-0.1-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page