man-group / man-group/pytest-plugins
Expose profile/pstats parameters as pytest config variables
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 597
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
There are various arguments which are available when calling `profile` and `pstats`.
It would be nice to be able to select those via `pytest.ini`
- sort: https://docs.python.org/3.6/library/profile.html#pstats.Stats.sort_stats , needs to be comma separated list.
- percentage or count of lines to print
- regular expression to limit names of printed functions
- `timeunit`, `subcalls` (bool) & `builtins` (bool)
As percentage or count and regular expression can be in either order, it might be wiser to have that as a single config option. On the command line, the order can be derived from the arg order. Maybe the same can be done by the order in `pytest.ini`.. ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the profile and pstats argument handling and the pytest.ini configuration registration. Compare the existing command-line options with the requested sort, output limit, function-name filter, timeunit, subcalls, and builtins settings. Done means the listed parameters can be selected through pytest.ini with a defined ordering for the ambiguous options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100