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-2.0.0.tar.gz (7.5 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-2.0.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for realerikrani_pysteptest-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d3b1c5f3f26abe2e28bff21c0c38575e5f1a37a3060079c404ceffbed93478f2
MD5 ab404ed85d482357d0daac967b3b7d97
BLAKE2b-256 e4ab9c64f8d38bf23700dc373e77669e7fe8daf64a182fcb9793c283fd6c3167

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for realerikrani_pysteptest-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68e18870c95eb86a8dbbfaf8f715414154a91c89e97bb86510245743df408f7f
MD5 2ae95d45a50de6e3e015b066c810f6f0
BLAKE2b-256 e2cdf2b68038f89e937bf8785b545d678bdf86be1a2d4e025d4f652bc9b106c7

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