https://github.com/jason916/pytest_filter_case
[pytest plugin] run test cases filter by mark
https://github.com/jason916/pytest_filter_case
case-filter pytest-plugin testcase
Last synced: about 1 year ago
JSON representation
[pytest plugin] run test cases filter by mark
- Host: GitHub
- URL: https://github.com/jason916/pytest_filter_case
- Owner: Jason916
- Created: 2019-04-25T02:26:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T07:43:46.000Z (over 5 years ago)
- Last Synced: 2025-02-11T15:31:40.733Z (about 1 year ago)
- Topics: case-filter, pytest-plugin, testcase
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## pytest_filter_case
[pytest plugin] run test cases filter by mark
run test cases filter by mark of env and mark of testcase level
run testcases filter by mark of env, options: private/public/canary/deployment/all, example: [single] --run-env public
run testcases filter by mark of testcase level, options: P0/P1/P2/P3, example: [single] --run-testcase-level P0,[multi] --run-testcase-level P0 P1 P2
## Install
pip install pytest-filter-case
## Usage
for example:
single option
pytest --run-env=public --run-testcase-level=P0
multi options
pytest --run-env=public --run-testcase-level="P0 P1 P2"