pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
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...
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...
- [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.
- [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...
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...
#### 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...
#### 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...
#### 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...