Skip to main content

Allure reporter for Vedro framework

Project description

Vedro Allure Reporter

Codecov PyPI PyPI - Downloads Python Version

Allure reporter for Vedro framework

Installation

1. Install package

$ pip3 install vedro-allure-reporter

2. Enable plugin

# ./vedro.cfg.py
import vedro
import vedro_allure_reporter as r

class Config(vedro.Config):

    class Plugins(vedro.Config.Plugins):

        class AllureReporter(r.AllureReporter):
            enabled = True

Usage

Run tests

$ vedro run -r allure --allure-report-dir ./allure_reports

Generate report via Allure command-line tool

$ allure serve ./allure_reports

Upload report to Allure TestOps

$ export ALLURE_ENDPOINT=<endpoint>
$ export ALLURE_PROJECT_ID=<project_id>
$ export ALLURE_TOKEN=<token>

$ export LAUNCH_ID=`allurectl launch create --launch-name test --no-header --format ID | tail -n1`
$ allurectl upload ./allure_reports --launch-id $LAUNCH_ID
$ allurectl launch close $LAUNCH_ID

Docs — https://docs.qameta.io/allure-testops/quickstart/qa-auto/

Documentation

Custom Labels

# ./vedro.cfg.py
import vedro
import vedro_allure_reporter as r
from vedro_allure_reporter import AllureLabel

class Config(vedro.Config):

    class Plugins(vedro.Config.Plugins):

        class AllureReporter(r.AllureReporter):
            enabled = True

            labels = [
                AllureLabel("project_name", "vedro-allure-reporter")
            ]

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

vedro-allure-reporter-1.0.0.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

vedro_allure_reporter-1.0.0-py3-none-any.whl (9.0 kB view hashes)

Uploaded 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