Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronnypfannschmidt/pytest-manual-marker
https://github.com/ronnypfannschmidt/pytest-manual-marker
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ronnypfannschmidt/pytest-manual-marker
- Owner: RonnyPfannschmidt
- Created: 2021-10-08T09:24:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T20:41:40.000Z (30 days ago)
- Last Synced: 2024-10-22T15:28:48.121Z (29 days ago)
- Language: Python
- Size: 38.1 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pytest-manual-marker
Pytest marker for marking manual tests. Adds options for collecting manual, automated (default) or both.
Adds a different test outcome for manaual tests.
## Usage
```python
# content of test_manual.py
import pytest@pytest.mark.manual
def test_manual():
"""this needs a opt in and will report manual as test status"""def test_automated():
"""this is a empty test just for shows"""
```### collect only manual tests
```console
$ pytest --collect-only -q --manual
test_manual.py::test_manual1/2 tests collected (1 deselected) in 0.00s
```### collect only automated tests
```console
$ pytest --collect-only -q
test_manual.py::test_automated1/2 tests collected (1 deselected) in 0.00s
```### collect manual and automated tests
```console
$ pytest --collect-only -q --include-manual # collect both manual and automated tests
test_manual.py::test_manual
test_manual.py::test_automated2 tests collected in 0.00s
```## Install
Install this plugin::
```console
! pip install pytest-manual-marker
```