pytest marker for marking manual tests
Project description
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
# 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
$ pytest --collect-only -q --manual
test_manual.py::test_manual
1/2 tests collected (1 deselected) in 0.00s
collect only automated tests
$ pytest --collect-only -q
test_manual.py::test_automated
1/2 tests collected (1 deselected) in 0.00s
collect manual and automated tests
$ pytest --collect-only -q --include-manual # collect both manual and automated tests
test_manual.py::test_manual
test_manual.py::test_automated
2 tests collected in 0.00s
Install
Install this plugin::
! pip install pytest-manual-marker
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pytest_manual_marker-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a8dcdd1efb24e45ec9c596e59a2fecdc2e17c6f88558868e92228d4d6547c93 |
|
MD5 | 0054623700c00dc10695cfb76fd9f12d |
|
BLAKE2b-256 | 1e7f0cebe15b8450b71cf43230814c18c74cd7355a9cc269481f7540b87c7a8b |
Close
Hashes for pytest_manual_marker-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 602b57a51212e42dc546d7f7caf34c666ab04a2f2f62322a34ae5ca77d3ce749 |
|
MD5 | 820447805f760d67e0c1054b64421fdf |
|
BLAKE2b-256 | dd52aa4272af5881cc8bc047d8ab3c6af996e889aa13d7b65257d9b49cee3c63 |