pytest-dev / pytest-dev/pytest

capture: combine or line-order intersparse stdout and stderr

Open
#5,449 14 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: capture status: critical type: enhancement type: feature-branch type: proposal
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

At this moment pytest capture is not able to combine stdout and stderr lines in a chronological order, thus the capture is separated. This means that that on larger outputs it is impossible to identify where did the stderr lines originated from (example ansible output, where warnigns are sent to 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 by locating pytest's capture implementation and its existing capture tests. Investigate how stdout and stderr are currently stored separately and determine how chronological interleaving could be represented. Done means larger outputs preserve the relative order of both streams, with tests covering the requested behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.