Skip to content

Console output is logged out of order #370

Open
@reneighbor

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:

Image of print before Cedar output

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:

Image of print interrupted by test file location

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions