pytest-dev / pytest-dev/pytest

feature request: use --show-capture to show stdout and stderr but not logs

Open
#11,037 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: capture type: proposal
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?

I want to use the show-capture flag to stop showing log messages. However, I want to see both stdout and stderr, so I can't do show-capture=stdout or show-capture=stderr. It seems if I do --show-capture=stdout --show-capture=stderr I see stderr but not stdout.

Describe the solution you'd like

Maybe --show-capture=stdout --show-capture=stderr could capture both stdout and stderr.

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 with the --show-capture command-line reference linked in the issue and reproduce the behavior using separate stdout, stderr, and log capture settings. Check how repeated --show-capture options are parsed, then add coverage showing that stdout and stderr can both be displayed without logs.

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
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.