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 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.1-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pytest-railflow-testrail-reporter-0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for pytest-railflow-testrail-reporter-0.1.tar.gz
Algorithm Hash digest
SHA256 4f51db78ab3a1f5ea6a3aca9d198b1d73ff8d0cc98eb4bd05ea1fb9b622f0614
MD5 6822858de121d90bbb5e90d4a270dd29
BLAKE2b-256 5cb264560f4fd5bcc9687b8df3b3c6a8dbb906acc8949e324e417fbb6d93a239

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_railflow_testrail_reporter-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for pytest_railflow_testrail_reporter-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d782f4826258f8aaf500e3b5285639418041536721f899632e0184dceca9875e
MD5 d08a7bf760a77b2821214b88508c1e06
BLAKE2b-256 c1232c9deb69e3f0d87186b96f1c42648ec72c3505462c4093be6bd0b8b73154

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