-
Notifications
You must be signed in to change notification settings - Fork 140
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
Console output is logged out of order #370
Comments
Hey @reneighbor, The reason you're seeing logs during your tests appear separated from the Cedar reporting is that Cedar uses the What really surprises me about your screenshots is that I'm not seeing the usual XCTest logs about test suites and test cases starting and completing. This is the sort of output I'd expect to see (from one of Cedar's own test bundles):
Regarding the mixed up ordering, I think you're right about it being due to different sources for the output, however it's actually separate processes that are contributing during the test run. |
When logging print statements in the body of Cedar tests, we'd expect the print-out to show up AFTER the output logging the init for Cedar tests. However, it is consistently showing up AFTER the output for Cedar tests. Example:
This is happening when project contains tests written in both Swift and Obj-C, as well as when the project contains only Cedar tests written in Swift or Cedar tests written in Obj-C.
Additionally, while the print output is consistently happening before the Cedar initializing output, at some times the print output is interrupted by the output specifying the test file location. Example:
If you compare the image above with the first image, you'll see the test file location is usually in the very end of the test output.
According to Tim, we're also sometimes seeing the print output individual messages actually interrupted by the test file location output. This does not happen in a consistent way.
Our hypothesis is that the different sections of the console output are coming from different sources (std err, std out), and additionally both XCTest and Cedar are contributing to the output. The sources are getting out of order, which is causing this problem.
The text was updated successfully, but these errors were encountered: