Skip to content

[SR-105] Allow test-only dependencies for package manager #42727

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-105
Radar None
Original Reporter nickygerritsen (JIRA User)
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Improvement
Assignee kkoval (JIRA)
Priority Medium

md5: 2125813310b0448543d7d85f6e0a4904

Issue Description:

The Swift Package Manager is great and I expect it will be widely used in the future.

However one thing I am missing is that it would be nice to somehow have dependencies that only matter during testing.

For example if I want to use Quick/Nimble, it does not make any sense to have them as a dependency for my package, but only when testing.

Carthage for example solves this using "private" dependencies. Perhaps something similar can be done in the Swift Package Manager? For example a

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