pytest-dev / pytest-dev/pytest

"Skipped" lines in the short summary don't include the function names being skipped.

Open
#14,607 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

What's the problem this feature will solve?

As the title says, the "Skipped" lines don't include the function name, in contrast to e.g. the xfailed tests:

Image
Describe the solution you'd like

It would be nice if the test's function name would be shown rather than the test file and line number.

Additional context

pytest version used is 9.0.3

There are some other somewhat related issues:

  • This issue reports the same thing and was supposed to be fixed... but it seems like it wasn't fixed? #10457
  • This issue reports something similar, but not exactly the same: #5077

Contributor guide

Open the contributing guide

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 reproducing the short summary with skipped tests under pytest 9.0.3 and compare its “Skipped” lines with xfailed output. Review the behavior discussed in #10457 and #5077 for prior context. Done means the summary displays each skipped test’s function name rather than only its file and line number, without changing the existing xfailed formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.