man-group / man-group/pytest-plugins

pytest-profiling: option to include setup/teardown into the output

Open
#131 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
597
Forks
89
PR merge metrics
No merged PRs in 30d

Description

`pytest-profiling` outputs profiles of individual **tests** and a combined profile of all **tests**

It seems that setup/teardown is not included in the profile.

I wish there was an option to profile everything, including setup, teardown and fixtures...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the pytest-profiling implementation and its pytest integration to find where individual and combined test profiles are collected. Verify how setup, teardown, and fixtures are currently handled, then define an option whose enabled output includes those phases and covers both profile modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.