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-2.0.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9af80aa20513fa8c58baa174b7d4b7a1ac3f88d76a9854c101e954b5843d1191 |
|
MD5 | 78b0ebcbdc01c4a5f6a2ab8a6031d256 |
|
BLAKE2b-256 | e5aa96b2aeac547000fa1dbddbf1cfc272cb51a54abc95e28621d1ae808cf48b |
Close
Hashes for pytest_manual_marker-2.0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3656035d5f3bb1258c386252753f5cc88453c5a82e322151fbf7aa3890b7363 |
|
MD5 | 42fb7ca2798f6935ef3cfa7f41ce8635 |
|
BLAKE2b-256 | 8a916e2dc223e2e9712d52de24d972b47929b22841f5d0d9c95eb36f6c9453b9 |