Skip to content

[SR-16057] Include target name in Linux test output. #343

Open
@adam-fowler

Description

Previous ID SR-16057
Radar None
Original Reporter @adam-fowler
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s XCTest
Labels Improvement
Assignee None
Priority Medium

md5: 796a6b7c95c2f0761a5fa1880bf3d0bf

Issue Description:

When you run `swift test` on macOS it includes the target name in the output of each test.

Test Case '-[BasicsTests.AuthorizationProviderTests testBasicAPIs]' started.
Test Case '-[BasicsTests.AuthorizationProviderTests testBasicAPIs]' passed (0.001 seconds).

When you run the same on Linux it doesn't include the target name

Test Case 'AuthorizationProviderTests.testBasicAPIs' started at 2022-03-24 17:20:00.
Test Case 'AuthorizationProviderTests.testBasicAPIs' passed (0.001 seconds).

If you are parsing the output from the Linux version this makes it harder to work out what actual test passed/failed especially if your Package.swift has two targets which both have a test suite and function name with the same name.

Would it be possible to update the output to include the target name.

The context for this is I am parsing the output of `swift test` to update the status of Tests in the Test Explorer in the Swift Visual Studio Code Extension.

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