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

Hi, after updating to pytest-7.4.0, I noticed that skip reasons for long tests names either get cutoff or disappear when running pytest in a small width terminal or piping output...

topic: reporting
type: regression

The `_diff_text_` function might try to calculate diffs of huge texts, taking a very long time, even if that diff is going to be truncated in non-verbose mode. This PR...

type: performance
bot:chronographer:provided

- [x] a detailed description of the bug or problem you are having - [ ] output of `pip list` from the virtual environment you are using - [ ]...

#### Description I would like to have the ability to arbitrarily nest test functions in the same manner as facilitated by the [pytest-describe](https://github.com/pytest-dev/pytest-describe) plugin. While we can currently nest test...

This allows to load plugins via `PYTEST_PLUGINS` environment variable and `pytest_plugins` global variable using their names in installed package entry points. Closes #12624.

bot:chronographer:provided

- [x] a detailed description of the bug or problem you are having - [ ] output of `pip list` from the virtual environment you are using - [x] pytest...

topic: reporting
topic: config

related prior reading: #3639 pytest's fixture mechanism is part of pytest's private APIs, to some degree understandably so: referring to a fixture in a test function's parameters is very specific...

type: proposal
topic: fixtures

#### What's the problem this feature will solve? Currently it is not possible to load plugins via `PYTEST_PLUGINS`/`pytest_plugins` using their entry points. Only module names are recognized. #### Describe the...

topic: reporting
topic: config

#### Background I was working on a function decorated with `numba.jit(nopython=True)` containing an assert statement. The test fails with numba errors, pointing to the assert statement, even though the logic...

type: proposal
topic: rewrite

#### What's the problem this feature will solve? Support for per-execution fixtures in executors that wrap each test function and runs the function multiple times (for different examples) have been...

type: proposal
topic: fixtures