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

Make listTests always print to console.log #4391

Merged
merged 7 commits into from
Sep 1, 2017

Conversation

jseminck
Copy link
Contributor

Summary
Always print the output of the --listTests option to console.log, even when using --json flag (which is otherwise redirected to stderr) or the --stdErr flag.

See issue: #4388

Test plan
Updated the existing test

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.

Thanks!
seems like one of the tests is failing because console.log adds the \n the end. I don't think it's a big deal and we can keep it there.
You do need to update the snapshot though :)

@jseminck
Copy link
Contributor Author

jseminck commented Aug 30, 2017

Updated 😄 I wanted to see the results from CI because I'm on Windows at the moment and some tests are unstable for me.

@jseminck
Copy link
Contributor Author

The test passes on my WIndows machine... Will try again on my mac but only have access to it tomorrow!

@cpojer
Copy link
Member

cpojer commented Aug 31, 2017

Seems like the test is failing on AppVeyor.

@jseminck
Copy link
Contributor Author

Yeah - I noticed the same on my Windows pc at home. The test output is different on Win/Mac. I'll investigate further when I have both machines available at the same time 😄

But it seems like for Windows there's an additional \n added?

@jseminck
Copy link
Contributor Author

jseminck commented Sep 1, 2017

Sorry for the additional commits, but it was the fastest way for me to test between Mac/Windows. If you want me to squash them, let me know.

I eventually ended up finding a way that the test passes on both machines, though I do not understand how it worked before. The issue (I think) is that in the test files we were splitting and joining with EOL from the os package (which probably was different for the Windows tests).

AppVeyor now started failing on some other tests - but that seems not to be related to my changes? Is it possible to restart?

@cpojer cpojer merged commit a344d49 into jestjs:master Sep 1, 2017
@cpojer
Copy link
Member

cpojer commented Sep 1, 2017

Thank you.

@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