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 = get("BROWSER", "chrome")
      • CREATE_ALLURE_REPORT = get('CREATE_ALLURE_REPORT', True)
  • 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

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.5.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_cmdline_add_args-1.9.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest_cmdline_add_args-1.9.5.tar.gz.

File metadata

  • Download URL: pytest_cmdline_add_args-1.9.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for pytest_cmdline_add_args-1.9.5.tar.gz
Algorithm Hash digest
SHA256 2c5b78f4f345215d080a8ffe1869c41ec08498281546c40e41a6a8ed072f560b
MD5 4032752bca98375a05ef42d304c1075c
BLAKE2b-256 38bdf62da4da76bb387c849b018414e7e8b49afbbba8428d6843d3f423a5c3ed

See more details on using hashes here.

File details

Details for the file pytest_cmdline_add_args-1.9.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_cmdline_add_args-1.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3197da17d3a927af908623eeb864566fe7543ab6de02d4d0d5ea6b311a27023d
MD5 820f1773de97d966f7ce55588fec4936
BLAKE2b-256 a9836b0491f2c84f5973ef486e260711b579fde5ec2ce14dacdf0851e4b0a2d6

See more details on using hashes here.

Supported by

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