Description
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.
Activity