Skip to content

Integrate pytest-instafail functionality into the core #8720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
staticdev opened this issue Jun 1, 2021 · 4 comments
Closed

Integrate pytest-instafail functionality into the core #8720

staticdev opened this issue Jun 1, 2021 · 4 comments
Labels
topic: reporting related to terminal output and user-facing messages and errors type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature

Comments

@staticdev
Copy link

staticdev commented Jun 1, 2021

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.

@Zac-HD
Copy link
Member

Zac-HD commented Jun 1, 2021

I think you want https://pypi.org/project/pytest-instafail/ ?

@staticdev
Copy link
Author

@Zac-HD looks like so. But without having to install something just to change how is the output. Since pytest already has many options for that built-in.

@nicoddemus
Copy link
Member

nicoddemus commented Jun 1, 2021

Hi @staticdev,

But without having to install something just to change how is the output

I personally think that's OK: pytest has a flexible plugin architecture for this very reason, for people to be able to implement extra functionality without adding maintenance overhead to the core. After all, using the plugin should be a simple pip install away.

Having said that, in the past we did integrate extra functionality that was implemented as a plugin into the core, so I'm renaming the title of the issue to reflect that more clearly, and changing this to a proposal. 👍

@nicoddemus nicoddemus changed the title Hability to see errors of failed tests after individual execution Integrate pytest-instafail functionality into the core Jun 1, 2021
@nicoddemus nicoddemus added topic: reporting related to terminal output and user-facing messages and errors type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature labels Jun 1, 2021
@Zac-HD
Copy link
Member

Zac-HD commented Jul 6, 2024

Closing as per #12465 (comment).

@Zac-HD Zac-HD closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: reporting related to terminal output and user-facing messages and errors type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature
Projects
None yet
Development

No branches or pull requests

3 participants