https://github.com/pytest-with-eric/pytest-addoption-example
How To Use Pytest With Command Line Options (Easy To Follow Guide)
https://github.com/pytest-with-eric/pytest-addoption-example
cli-options pytest-addoption pytest-cli pytest-plugin
Last synced: about 1 month ago
JSON representation
How To Use Pytest With Command Line Options (Easy To Follow Guide)
- Host: GitHub
- URL: https://github.com/pytest-with-eric/pytest-addoption-example
- Owner: Pytest-with-Eric
- Created: 2023-08-16T17:00:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-26T11:24:48.000Z (over 1 year ago)
- Last Synced: 2025-01-29T12:30:05.047Z (3 months ago)
- Topics: cli-options, pytest-addoption, pytest-cli, pytest-plugin
- Language: Python
- Homepage: https://pytest-with-eric.com/pytest-advanced/pytest-addoption/
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyTest Add Options
This repo contains the sample code for the article - [How To Use Pytest With Command Line Options (Easy To Follow Guide)](https://pytest-with-eric.com/pytest-advanced/pytest-addoption/)
This project explains how to use Pytest Add Options and pass CLI Arguments to your unit tests.
# Requirements
* Python (3.11.4)Please install the dependencies via the `requirements.txt` file using
```commandline
pip install -r requirements.txt
```
If you don't have Pip installed please follow instructions online on how to do it.# How To Run the Unit Tests
To run the Unit Tests, from the root of the repo run
```commandline
pytest -v -s
```If you have any questions about the project please raise an Issue on GitHub.