Skip to main content

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

Project description

pytest-railflow-testrail-reporter

PyPI Build Cov MIT license PyPI - Downloads

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
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

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


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

pytest_railflow_testrail_reporter-0.1.4-py2.py3-none-any.whl (6.3 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