Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_manual_marker-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_manual_marker-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file pytest_manual_marker-1.0.0.tar.gz.

File metadata

  • Download URL: pytest_manual_marker-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pytest_manual_marker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4a8dcdd1efb24e45ec9c596e59a2fecdc2e17c6f88558868e92228d4d6547c93
MD5 0054623700c00dc10695cfb76fd9f12d
BLAKE2b-256 1e7f0cebe15b8450b71cf43230814c18c74cd7355a9cc269481f7540b87c7a8b

See more details on using hashes here.

File details

Details for the file pytest_manual_marker-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_manual_marker-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pytest_manual_marker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 602b57a51212e42dc546d7f7caf34c666ab04a2f2f62322a34ae5ca77d3ce749
MD5 820447805f760d67e0c1054b64421fdf
BLAKE2b-256 dd52aa4272af5881cc8bc047d8ab3c6af996e889aa13d7b65257d9b49cee3c63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page