Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

json-stream reporter should always print at least {} on error #656

@bhamiltoncx

Description

@bhamiltoncx

I upgraded Xcode to 7.2 today without installing the simulators.

When I used xctool -reporter json-stream from Buck, Buck's JSON parser failed because xctool printed nothing to stdout (not even an empty JSON object {}). It did print an error message to stderr:

% /path/to/xctool -reporter json-stream -sdk iphonesimulator run-tests -logicTest /path/to/test.xctest
ERROR: SDK 'iphonesimulator' doesn't exist. Possible SDKs include:

It'd be nice if xctool could make sure to print a valid JSON object to stdout even on failure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions