swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.72k stars 1.34k forks source link

[Traits] Enable trait configuration for `swift-test` #7704

Closed FranzBusch closed 3 months ago

FranzBusch commented 3 months ago

Motivation

It is useful to be able to configure the traits of the root package when running tests.

Modification

This PR adds the trait CLI options to the swift test command to enable specific traits or all traits, or to disable the default traits.

Result

swift test now supports configuring the root traits.

FranzBusch commented 3 months ago

@swift-ci please test

FranzBusch commented 3 months ago

@swift-ci test windows

FranzBusch commented 3 months ago

@swift-ci please test

FranzBusch commented 3 months ago

@swift-ci please test

FranzBusch commented 3 months ago

@swift-ci please test

FranzBusch commented 3 months ago

@swift-ci please test

FranzBusch commented 3 months ago

@swift-ci test windows

FranzBusch commented 3 months ago

@swift-ci test windows