Allure reporter for Vedro framework
Project description
Vedro Allure Reporter
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 allure_reporter
class Config(vedro.Config):
class Plugins(vedro.Config.Plugins):
class AllureReporter(allure_reporter.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 Global Labels
# ./vedro.cfg.py
import vedro
import vedro_allure_reporter as allure_reporter
from vedro_allure_reporter import AllureLabel
class Config(vedro.Config):
class Plugins(vedro.Config.Plugins):
class AllureReporter(allure_reporter.AllureReporter):
enabled = True
labels = [
AllureLabel("project_name", "vedro-allure-reporter")
]
Custom Scenario Labels
# ./scenarios/sign_up_user.py
import vedro
from vedro_allure_reporter import allure_labels, Story, AllureLabel
@allure_labels(Story("Sign Up"), AllureLabel("custom", "value"))
class Scenario(vedro.Scenario):
subject = "sign up user via email"
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for vedro-allure-reporter-1.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f4d5bb576b881347082c34dc7835aeebcf4f1caab11a91d777eb5549a2d448 |
|
MD5 | 1ca2ea8449a98a81821447cbfca6e2b4 |
|
BLAKE2b-256 | 8aef2147765fe7e219d71f99aab63e787d107c7b3e126be7f2143fad9631a26c |
Close
Hashes for vedro_allure_reporter-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d23077a7d845c1808ac5e3899421f9580f0945116182a54fba65b149cb694c |
|
MD5 | 5ba988140bcc4b5c554a3e7a773bbf10 |
|
BLAKE2b-256 | 726cecd7d325b081a37203f922492c6e79fca99d4e663671563ff2a87b3346e1 |