Socket
Book a DemoInstallSign in
Socket

pytest-cmdline-add-args

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-cmdline-add-args

Pytest plugin for custom argument handling and Allure reporting. This plugin allows you to add arguments before running a test.

pipPyPI
Version
1.9.5
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.