pytest icon indicating copy to clipboard operation
pytest copied to clipboard

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

Results 573 pytest issues
Sort by recently updated
recently updated
newest added

Hi, This is a documentation request to have a flowchart of all the pytest test session states (setup, conftest, collecting, run setup, run test, run teardown, make report, etc..) together...

type: docs

this needs a validation as it allows partially implemented sequences closes #11797 this changes the recursive map of approx to accept all sequences (just like approx) i would like to...

#### What's the problem this feature will solve? The decorator pytest.mark.parameterize() could use arglist which contains type-annotated arguments. This way one can quickly copy function signature and clean it later....

status: needs information
stale

Default level (warning) logs are printed no matter the value provide to `--log-cli-level` or `--log-level`. ```python # conftest.py import logging import pytest def pytest_configure(config: pytest.Config): logger = logging.getLogger(__file__) logger.info("info") logger.debug("debug")...

status: needs information
stale

#### What's the problem this feature will solve? I am trying to write a `pytest` plugin that has several command line flags. Some combinations of these flags are "illegal", for...

type: proposal

https://github.com/pytest-dev/pytest/pull/4941 caused `HOME` to be set to `tmpdir` when invoking `pytester.runpytest_subprocess()`. Because of this, if `pytest` is installed in `USER_SITE`, it will not be found when running `pytester`: ```console --------------------------------------------------------------------------------------...

plugin: pytester

pytest tests/rdma/perftest_tcp/test_*_bw.py -vx -m "(lv0 or lv1) and smoke and not huge" When the “smoke” mark is satisfied, the "not Huge" mark will not take effect

status: needs information

Started an discussion on this but wanted to move it over as I think it is a bug, apologies if that is incorrect. Thanks! My goal is to correctly store...

status: needs information

### Discussed in https://github.com/pytest-dev/pytest/discussions/11412 Originally posted by **jgersti** September 7, 2023 In #11284 @RonnyPfannschmidt mentioned that he would like to incorporate `pytest-lazy-fixture`[^1] and building blocks/hooks for `pytest-cases`[^2] like behaviour into...

type: proposal
topic: fixtures