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
Close
Hashes for pytest_cmdline_add_args-1.9.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c5b78f4f345215d080a8ffe1869c41ec08498281546c40e41a6a8ed072f560b |
|
MD5 | 4032752bca98375a05ef42d304c1075c |
|
BLAKE2b-256 | 38bdf62da4da76bb387c849b018414e7e8b49afbbba8428d6843d3f423a5c3ed |
Close
Hashes for pytest_cmdline_add_args-1.9.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3197da17d3a927af908623eeb864566fe7543ab6de02d4d0d5ea6b311a27023d |
|
MD5 | 820f1773de97d966f7ce55588fec4936 |
|
BLAKE2b-256 | a9836b0491f2c84f5973ef486e260711b579fde5ec2ce14dacdf0851e4b0a2d6 |