pytest-dev / pytest-dev/pytest

Integrate pytest-instafail functionality into the core

Open
#8,720 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic: reporting 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?

When you have hours of tests to run (for example thousands of integration tests) you can be able to see the logs during execution and start fixing errors.

Actually, I found a 2015 question on StackOverflow about that but no solution there worked. I tried using flags -v, -rA, -v --tb=no and also --tb=line.

Describe the solution you'd like

Have a flag to show failed test's errors while executing the tests (instead of standard after all tests were executed).

Alternative Solutions

Some of the existing flags such as -v, -rA, -v --tb=no and also --tb=line have this behavior.

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 examining pytest-instafail and pytest's existing reporting flags, including -v, -rA, --tb=no, and --tb=line. Determine how failed-test errors should appear during execution, then add the option and tests demonstrating live failure output while the test run continues.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing
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.