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 653 pytest issues
Sort by recently updated
recently updated
newest added

## Description There appears to be an issue with pytest's test execution order that causes a session-scoped, parametrized fixture to be set up and torn down multiple times with the...

type: enhancement
type: performance
topic: fixtures

I have a handful of tools in and outside of a pytest run that care about whether the `matchexpr` (i.e. what gets passed to `pytest -m ...`) will match a...

type: proposal
topic: marks

Hi, I'm trying to build a base class to hold a common test setup and assumptions, that I want to enable in subclasses (inspired by [this article](https://adamj.eu/tech/2025/05/30/python-unittest-common-tests/#with-pytest-using-the-test-attribute)) having the fixture-powered...

type: question
topic: fixtures

#### What's the problem this feature will solve? The `-r` flag controls both summary report and output capture reporting. Really, it'd be nice to have those separate. For large tests...

type: proposal
plugin: capture
topic: config

#### What's the problem this feature will solve? Currently it's only possible to set the name of the root suite when running tests, but other frameworks such as jest will...

type: proposal
plugin: junitxml

#### What's the problem this feature will solve? when i enable the new strict mode in pytest settings, i expect any warnings to become errors. but there seems to still...

type: proposal
topic: collection
plugin: warnings

#### What's the problem this feature will solve? I noticed that some of the release automation activities involve running bare GH CLI commands with arguments that have to match pre-release...

type: infrastructure

Hey there - ~~very difficult to reproduce this consistently, as the behavior changes arbitrarily.~~ see my comment below for reproducer The bad behavior looks like this: ``` [classic@framework sqlalchemy:try_pytest_9]$ .nox/tests-py313-sqlite-cext-backendonly/bin/python...

topic: config

In general is better not to use `-latest` runners because they are very often outdated versions, causing problems. As github does not update the name of the runners very often,...

type: infrastructure
github_actions

I just now updated an old application from pytest 7 to 8 and the following started failing: ```python # Using pytest 8.4.2 from unittest import TestCase, skipIf import pytest @skipIf(True,...

type: bug
plugin: unittest