Skip to content

Test: mark test withKnownIssue #8956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Tests/CommandsTests/TestCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,17 @@ struct TestCommandTests {
}

@Test(
.issue("https://github.com/swiftlang/swift-package-manager/issues/8955", relationship: .defect),
arguments: SupportedBuildSystemOnAllPlatforms, BuildConfiguration.allCases,
)
func enableDisableTestabilityDefaultShouldRunWithTestability(
buildSystem: BuildSystemProvider.Kind,
configuration: BuildConfiguration,
) async throws {
try await withKnownIssue("fails to build the package") {
try await withKnownIssue(
"fails to build the package",
isIntermittent: (CiEnvironment.runningInSmokeTestPipeline),
) {
// default should run with testability
try await fixture(name: "Miscellaneous/TestableExe") { fixturePath in
let result = try await execute(
Expand All @@ -238,7 +242,7 @@ struct TestCommandTests {
#expect(result.stderr.contains("-enable-testing"))
}
} when: {
(buildSystem == .swiftbuild && .linux == ProcessInfo.hostOperatingSystem && CiEnvironment.runningInSelfHostedPipeline)
(buildSystem == .swiftbuild && .linux == ProcessInfo.hostOperatingSystem)
|| (buildSystem == .swiftbuild && .windows == ProcessInfo.hostOperatingSystem && CiEnvironment.runningInSelfHostedPipeline)
}
}
Expand Down