pytest-dependency
  • About pytest-dependency
  • Installation instructions
  • Using pytest-dependency
  • Defining the scope of dependencies
  • Advanced usage
  • Names
  • Debugging guide
  • Configuring pytest-dependency
  • Reference
  • Changelog
pytest-dependency
  • pytest-dependency - Manage dependencies of tests

pytest-dependency - Manage dependencies of tests

This pytest plugin manages dependencies of tests. It allows to mark some tests as dependent from other tests. These tests will then be skipped if any of the dependencies did fail or has been skipped.

Content of the documentation

  • About pytest-dependency
    • What is the purpose?
    • How does it work?
    • Why is this useful?
    • Copyright and License
  • Installation instructions
    • System requirements
    • Interaction with other packages
    • Installation
  • Using pytest-dependency
    • Basic usage
    • Naming tests
    • Using test classes
    • Applying the dependency marker to a class as a whole
    • Parametrized tests
    • Marking dependencies at runtime
  • Defining the scope of dependencies
    • Explicitly specifying the scope
    • Dependencies in session scope
    • The class scope
  • Advanced usage
    • Dynamic compilation of marked parameters
    • Grouping tests using fixtures
    • Depend on all instances of a parametrized test at once
    • Logical combinations of dependencies
  • Names
    • Node ids
    • References and scope
  • Debugging guide
    • Example
    • Diagnostic tools
  • Configuring pytest-dependency
    • Notes on configuration for other plugins
    • Configuration file options
    • Command line options
  • Reference
    • pytest.mark.dependency()
    • depends()
  • Changelog
    • 0.6.1 (2026-02-15)
    • 0.6.0 (2023-12-31)
    • 0.5.1 (2020-02-14)
    • 0.5.0 (2020-02-14)
    • 0.4.0 (2018-12-02)
    • 0.3.2 (2018-01-17)
    • 0.3.1 (2017-12-26)
    • 0.3 (2017-12-26)
    • 0.2 (2017-05-28)
    • 0.1 (2017-01-29)
Next

© Copyright 2016–2026, Rolf Krahl.

Built with Sphinx using a theme provided by Read the Docs.