Skip to content

[SR-1354] [SwiftPM] Improve support for performance tests #5298

Open
@ddunbar

Description

@ddunbar
Previous ID SR-1354
Radar rdar://problem/29964221
Original Reporter @ddunbar
Type New Feature
Additional Detail from JIRA
Votes 3
Component/s Package Manager
Labels New Feature
Assignee None
Priority Medium

md5: 946faef0bc85a761be1928a00362082b

is duplicated by:

  • SR-4223 Use @testable in test release builds?
  • SR-6129 When testing in release mode with SwiftPM @testable doesn't work

relates to:

  • SR-1355 [XCTest] Support XCTest performance testing API

Issue Description:

We should have good support in SwiftPM for performance tests in general, and XCTest's performance tests in particular.

Performance tests often have slightly different requirements from correctness tests:

  1. Often times performance tests may only make sense when run in Release mode. That introduces complications when they also need to use @testable API.

2. Performance tests frequently need to take longer to run than correctness tests. This can make it useful to devise separate workflows that make it easy to partition them out to only run in CI, etc.

3. Performance test data is much richer than correctness data, which is relatively easy to present. Presenting performance test data well is incredibly difficult. It would be nice to provide some support for this, or find a good way to delegate this to another tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions