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

Print errors after test structure in verbose mode #4504

Merged
merged 3 commits into from
Sep 19, 2017

Conversation

acamposruiz
Copy link
Contributor

Summary

This is a fix for this issue #4264

When running a single test that has many test cases the error messages are printed before the list of failing/passing tests which makes us to scroll up every time just to see the error message.

This Pull Request change the behavior of print error messages to put them after the list of tests

So the behavior is going to switch from the actual:

image

to this:

image

@acamposruiz acamposruiz force-pushed the issues/4264-print-errors-after-test branch from cddaa32 to 90ecc08 Compare September 19, 2017 04:44
@acamposruiz acamposruiz reopened this Sep 19, 2017
Copy link
Contributor

@aaronabramov aaronabramov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks good!
yeah, unfortunately we have this weird subclassing that i've been trying to kill for a long time and it makes changes like this to involve more things than they should :(

@@ -30,6 +32,7 @@ describe('.assertions()', () => {
});

describe('.hasAssertions()', () => {
skipOnWindows.suite();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happened with this test? was there a "newline" issue?

Copy link
Contributor Author

@acamposruiz acamposruiz Sep 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test failed on window build into the 'continuous-integration/appveyor/pr — AppVeyor build failed' task without any reason about the code changed in my PR. So I used 'skipOnWindows.suite()' as many other cases where is used this approach too

@cpojer cpojer merged commit 246da7f into jestjs:master Sep 19, 2017
@acamposruiz
Copy link
Contributor Author

You are right @aaronabramov , so have you thought about to take away this subclass?, I could create a new issue about this if you agree

tabrindle pushed a commit to tabrindle/jest that referenced this pull request Oct 2, 2017
* Issue 4264: print errors after test structure in verbose mode

* Fix lint (jestjs#4504))

* Skip test on windows
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants