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 = get("BROWSER", "chrome")
- CREATE_ALLURE_REPORT = get('CREATE_ALLURE_REPORT', True)
- In this folder, create an env.py file in which the BROWSER and CREATE_ALLURE_REPORT variables will be
specified
e.g:
- If you are going to run tests using GitHub actions, you need to specify the name of your project in workflow:
- 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cmdline_add_args-1.9.6.tar.gz.
File metadata
- Download URL: cmdline_add_args-1.9.6.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24d75b0dd8011ff391881ab8ce18af63231e844424cd2ce881be6464fee047b9
|
|
| MD5 |
c8de4e43b783aec01024e71d80ffdf24
|
|
| BLAKE2b-256 |
41138bd69bf08288ab3a3b747c9d1a8b22bdaca331d8851593878edf00d404b2
|
File details
Details for the file cmdline_add_args-1.9.6-py3-none-any.whl.
File metadata
- Download URL: cmdline_add_args-1.9.6-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e09cb465e3667ac1dddfd7ee64c71483018dc676cf8ba2e23664b94d4bcb2ebd
|
|
| MD5 |
e278d55bb02d7f86e049c44057820496
|
|
| BLAKE2b-256 |
a8e3afc0fb4abfbcef208dbc68a490df4c710408b353ad2a2adc71ff9b380a59
|