About 727 results
Open links in new tab
  1. pytest documentation

    The pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries. pytest requires: Python 3.8+ or …

  2. Get Started — pytest documentation

    pytest discovers all tests following its Conventions for Python test discovery, so it finds both test_ prefixed functions. There is no need to subclass anything, but make sure to prefix your class …

  3. Full pytest documentation

    How to use pytest with an existing test suite. Running an existing test suite with pytest; How to use unittest-based tests with pytest. Benefits out of the box; pytest features in …

  4. How to invoke pytest

    In general, pytest is invoked with the command pytest (see below for other ways to invoke pytest). This will execute all tests in all files whose names follow the form test_*.py or \*_test.py in the …

  5. Usage and Invocations — pytest documentation

    Calling pytest from Python code¶ You can invoke pytest from Python code directly:

  6. Usage and Invocations — pytest documentation

    Calling pytest through python-m pytest ¶ You can invoke testing through the Python interpreter from the command line:

  7. Basic patterns and examples — pytest documentation

    $ pytest -rx ===== test session starts ===== platform linux -- Python 3.x.y, pytest-7.x.y, pluggy-1.x.y rootdir: /home/sweet/project collected 4 items test_step.py . F x.

  8. _pytest.python - pytest documentation

    How to invoke pytest; How to write and report assertions in tests; How to use fixtures; How to mark test functions with attributes; How to parametrize fixtures and test functions; How to use …

  9. Examples and customization tricks — pytest documentation

    How to use unittest-based tests with pytest for basic unittest integration. How to run tests written for nose for basic nosetests integration. The following examples aim at various use cases you …

  10. Basic patterns and examples - pytest documentation

    Please note that the mechanism for plugin discovery used by pytest (entry points) doesn’t work with frozen executables so pytest can’t find any third party plugins automatically. To include …

Refresh