Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass all arguments when initing testing parameters in
swift build
.
Resolves #7389.
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
Fixtures/Miscellaneous/TestDiscovery/IgnoresLinuxMain/Package.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// swift-tools-version:5.10 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "IgnoresLinuxMain", | ||
targets: [ | ||
.testTarget(name: "IgnoresLinuxMainTests"), | ||
] | ||
) |
5 changes: 5 additions & 0 deletions
5
...s/Miscellaneous/TestDiscovery/IgnoresLinuxMain/Tests/IgnoresLinuxMainTests/SomeTest.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import XCTest | ||
|
||
final class SomeTests: XCTestCase { | ||
func testSomething() {} | ||
} |
1 change: 1 addition & 0 deletions
1
Fixtures/Miscellaneous/TestDiscovery/IgnoresLinuxMain/Tests/LinuxMain.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fatalError("Should not use the contents of LinuxMain.swift") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters