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 BROWSER and CREATE_ALLURE_REPORT variables will be specified e.g:
- BROWSER = "chrome"
- CREATE_ALLURE_REPORT = True
- If you are going to run tests using GitHub actions, then you need to specify the name of your project:
- env:
- PROJECT_NAME: project_name
- env:
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.8.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1deaffb9deb08451cfaa4ec6fd2b39c84a80d5e35de56d1b9692c7259c8d05fd |
|
MD5 | ab7330041a9c25c844108a406a4c0e00 |
|
BLAKE2b-256 | ac15aa2fcae620bee4603361eb3667888ee7221a0dedc8f37a53ca8532801e0d |
Close
Hashes for pytest_cmdline_add_args-1.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bffac38b941282f722663a02798872f21e2482ca607c652d3ae694c1a07bbb0 |
|
MD5 | 4136496082a3f6aef9a22290283ad5bc |
|
BLAKE2b-256 | 8cae3b9baaf232aae63382280d1178e2ddc54f54ec143a9327dcf274d352e014 |