Skip to content
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

Add failed tests to table summary #48

Open
renkam opened this issue Dec 4, 2020 · 2 comments
Open

Add failed tests to table summary #48

renkam opened this issue Dec 4, 2020 · 2 comments

Comments

@renkam
Copy link

renkam commented Dec 4, 2020

If I understand correctly tparse display only passed tests in a table and to see failed tests I would need to scroll through output.

I would like to see failed tests in a table (preferably on bottom when running in console and on top when running in a CI).

@mfridman
Copy link
Owner

mfridman commented Dec 8, 2020

It should display failed (or panic) tests by default. No matter which flag fails should always be displayed.

Are you seeing a case where tests are failing but tparse is reporting them as passed ? If so, which Go version and is there a public repro by any chance?

If you have the raw output of the test with -json I can add a test case for it.

Here is what the failed portion would look like:

image

@renkam
Copy link
Author

renkam commented Dec 11, 2020

I am aware that failed tests are displayed in output. The problem is when tests are producing a lot of output (like hundreds of lines). Then output from tests is mixed with status of the test and looking for line with test status is very frustrating.

What I like to do when some test cases fails is to retry them with -v and -failfast flags. Finding failing tests would be much easier if those ar listed in table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants