Skip to main content

Pytest marker @pytest.mark.pysteptest for sequential tests in a class

Project description

pysteptest

After installing via pip, use the @pytest.mark.pysteptest marker on a class for example for system tests that need to happen in a specific order one after another. When one test fails, then do not run the following ones.

@pytest.mark.pysteptest
class TestTodos:
    def test_it_creates_todo(self):
        # ...

    def test_it_reads_todo(self):
        # ...

    def test_it_deletes_todo(self):
        # ...

This incremental marker is created by changing the code of https://github.com/pytest-dev/pytest/blob/24e84f08f43216f95620135305cbebe9f646e433/doc/en/example/simple.rst#incremental-testing---test-steps. See pytest repo's MIT license, LICENSE_OF_PYTEST file, included in the repository of this pysteptest project.

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

realerikrani_pysteptest-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

realerikrani_pysteptest-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: realerikrani_pysteptest-1.0.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.2

File hashes

Hashes for realerikrani_pysteptest-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dcb02522400663750651abc05ba06181080a7ebdadcb2efb34844314c316e41a
MD5 035b07ea4be77f5bd8942e1dc3997b28
BLAKE2b-256 ffcbc75ec1e17325316d2e4757c132384a20696f7c1fd2870c0668259b305fa3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for realerikrani_pysteptest-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a06a709c342c82aa0fee56e3341f65060116acbf8bfda0054a3c008b5b89fa94
MD5 c26b8f1d8964496b83e0ebd8e01a38d7
BLAKE2b-256 42df3aa4bda05b4edcc6fbde8366ce7939f31a926eae691a00bb4d9db659cd77

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