Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_cmdline_add_args-1.9.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

pytest_cmdline_add_args-1.9.2-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page