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

#### What's the problem this feature will solve? I am the author of [next-actions/pytest-mh](https://github.com/next-actions/pytest-mh) which is a multihost testing plugin for pytest. We are doing some black magic to dynamically...

type: proposal
topic: fixtures

#### What's the problem this feature will solve? [SlipCover](https://github.com/plasma-umass/slipcover) and soon also [Coverage.py](https://github.com/nedbat/coveragepy) modify the AST while loading modules, including test modules, to facilitate measuring branch coverage. However, pytest's assertion...

type: proposal
topic: rewrite

## EDIT: Using `py.test --pyargs mypackage` does not seem to work for `.egg` distributed packages. Adding ``` [easy_install] zip_ok = False ``` to `setup.cfg` seems to be a viable fix...

type: enhancement
topic: collection

### Problem description A bug was noticed when displaying failing tests on CI with the `-vv` flag: the ASCII color characters are being printed inside the detailed diff. ![image](https://github.com/pytest-dev/pytest/assets/27009864/a89e1a92-5f47-42e7-82f7-7883b434ae2a) The...

type: bug
plugin: junitxml

[The documentation on "Conditions as strings instead of booleans"](https://docs.pytest.org/en/8.2.x/historical-notes.html#conditions-as-strings-instead-of-booleans) ends by showing how to rewrite a condition string that uses `config` as a boolean expression that uses `pytest.config`. However, as...

type: docs

With pytest 8.3.2 as well as the current `main`, when creating a `repro/test_x.py` in the pytest repo: ```python import pytest @pytest.mark.parametrize("a", ["x/y", "/", "//"]) def test_x(a): assert False ``` and...

type: bug
topic: reporting
platform: windows

Fixes https://github.com/pytest-dev/pytest/pull/11916#issuecomment-2313758038 Importing `Self` from `typing` breaks the return type on Python 3.9 and under. You should be using `from typing_extension import Self` instead. For example, the following code: ```py...

bot:chronographer:provided
backport 8.3.x

This adds back the classifier as it was removed by accident, and I also added the config to avoid pyproject-fmt from removing it again. See https://github.com/pytest-dev/pytest/pull/12321#issuecomment-2311805015 for context.

skip news

#### What's the problem this feature will solve? Jest and Vitest JUnit Reporters do this, they include: `jest tests` and `vitest tests` as the value of the `testsuites` element's `name`...

plugin: junitxml

Hi folks, Currently in https://github.com/pytest-dev/pytest-xdist/issues/789 it has come up that users were asking to be able to configure `--dist` in the configuration file. While the usual solution is to use...

status: help wanted
type: proposal
topic: config