Pytest plugin for custom argument handling and Allure reporting. This plugin allows you to add arguments before running a test.
Project description
cmdline-add-args
Pytest plugin for handling and adding command line arguments
This plugin allows you to add custom arguments before running a test and generate Allure reports. It provides a flexible way to inject arguments into Pytest and control the reporting process with Allure.
Features
- Handling custom arguments
- Generating Allure reports
- Easy integration with Pytest
Usage
- You need to create a config folder at the root of your project
- In this folder, create an env.py file in which the ALLURE_REPORT_PATH and CREATE_ALLURE_REPORT variables will be specified e.g:
- CREATE_ALLURE_REPORT = get('CREATE_ALLURE_REPORT', True)
- ALLURE_REPORT_PATH = f'{current_directory}/allure-results/browser_name'
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 pytest_cmdline_add_args-1.7.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13d78e417ba76b3b5a8479e44d2c19272c22eec8feb77e81a32a5858e99d594 |
|
MD5 | 9c052ae068e347865dfeacd0bc1ec44e |
|
BLAKE2b-256 | 2f871b25bf7c452b25d2bd820c17cd9d0596b310c5363743429b09331e821c5a |
Close
Hashes for pytest_cmdline_add_args-1.7.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68dff0edc6295d0bb9a76cfb38e89b5c4068a6cd488643aa8e86c42d9a463e9 |
|
MD5 | e59515011bd80158ddcf47067fe222c6 |
|
BLAKE2b-256 | bba4240fdd60fe48e414fc8f4b6c74fc25518e1ced0b84dac582ebe50e4a393b |