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


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.2.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_railflow_testrail_reporter-0.2.0-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-railflow-testrail-reporter-0.2.0.tar.gz.

File metadata

  • Download URL: pytest-railflow-testrail-reporter-0.2.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for pytest-railflow-testrail-reporter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 468a8d22b88914eb34e11eabaea60559c13300cc80eed8c09b6337d370ab3bf3
MD5 617f996c32e22cf54522253d7925cdb0
BLAKE2b-256 1fd0dff09427493eb9697ef1ebd23f8ea5d1ca354369b3c5e5ff3b6f2235b885

See more details on using hashes here.

File details

Details for the file pytest_railflow_testrail_reporter-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_railflow_testrail_reporter-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for pytest_railflow_testrail_reporter-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7697909538c3c932ff8981ef60f270771ffe8123b5b5ef19f1415fc5dbaee4ea
MD5 70f76034c42594bdcdd36dd4b46901e3
BLAKE2b-256 70ed55ac597febfd753df515074904f00d5521118e87da0f7fd58f2b21673eb5

See more details on using hashes here.

Supported by

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