-
-
Notifications
You must be signed in to change notification settings - Fork 309
Test failures failing to show at the bottom since the change to use BufferedLogging #2936
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Seems
I created a custom formatter to call it after summeryReporter is called which worked around it. Seems this is caused by b2c8573. Which changed from TestRunnerLogger to using the BufferLogger E.g.
I also tested to see what testRun returns in reportTestFileResults and got a 0. And this.runner.testRun returns 0. |
Hmm, even crossing out
|
Oh I think I know why. It's because we do the logging in
cachedLogger.logBufferedMessages(); in onTestRunFinished for summery.
I guess it was missing |
Yeah I found the same issue just before you and created a PR #2932 to try and fix it. I Don't think the buffered logger is actually needed for this missing error reporting logging (it is just a single action to do the error logging) which is why in my PR i just reverted to the non buffered logger to fix the issue. I was also worried that others could have worked around the missing error reporting and so putting error reporting back in now could now alter these users reporting so I added an option to turn on the error reporting but left it disabled to match the current broken behavior. Maybe this could default to on though. I also found an issue where when they broke the error reporting they added log reporting and when you combine this reporter with the defaultReporter like you have in your config it then prints all logs twice which is a bit annoying. So I also added a config flag to allow turning off the log logging if required. |
Also I think there may be an issue with the fix you have proposed as it is still reusing the buffered logger from the earlier test stage. This buffered logger has already been flushed out with .logBufferMessages() and then it adds the error logging on the end of the logger and you then flush it again but this also re-outputs the original log lines as the buffer logger is only designed to be flushed once at the end. This is why i found I had to create a new logger to resolve the issue for me anyway. |
I think we can go along with your change. |
Hi, we're trying to upgrade from the following:
to
and our config is:
My problem is the test failures are not shown at the bottom. It took me a while to find where the test failure was
In the older versions it was shown at the bottom, made easier to discover. How do I get this behaviour back?
The text was updated successfully, but these errors were encountered: