Skip to content

Commit

Permalink
Reword the skip message for the abstract test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcgee1024 committed Mar 10, 2025
1 parent ea9f97f commit 153eb90
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Tests/BuildTests/BuildPlanTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ extension Build.BuildPlan {

class BuildPlanTestCase: BuildSystemProviderTestCase {
override func setUpWithError() throws {
try XCTSkipIf(type(of: self) == BuildPlanTestCase.self, "Pay no attention to the class behind the curtain.")
try XCTSkipIf(type(of: self) == BuildPlanTestCase.self, "Skipping this test since it will be run in subclasses that will provide different build systems to test.")
}

let inputsDir = AbsolutePath(#file).parentDirectory.appending(components: "Inputs")
Expand Down
4 changes: 2 additions & 2 deletions Tests/CommandsTests/APIDiffTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import XCTest

class APIDiffTestCase: CommandsBuildProviderTestCase {
override func setUpWithError() throws {
try XCTSkipIf(type(of: self) == APIDiffTestCase.self, "Pay no attention to the class behind the curtain.")
try XCTSkipIf(type(of: self) == APIDiffTestCase.self, "Skipping this test since it will be run in subclasses that will provide different build systems to test.")
}

@discardableResult
Expand Down Expand Up @@ -481,4 +481,4 @@ class APIDiffSwiftBuildTests: APIDiffTestCase {
override func skipIfApiDigesterUnsupportedOrUnset() throws {
try super.skipIfApiDigesterUnsupportedOrUnset()
}
}
}
2 changes: 1 addition & 1 deletion Tests/CommandsTests/BuildCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct BuildResult {
class BuildCommandTestCases: CommandsBuildProviderTestCase {

override func setUpWithError() throws {
try XCTSkipIf(type(of: self) == BuildCommandTestCases.self, "Pay no attention to the class behind the curtain.")
try XCTSkipIf(type(of: self) == BuildCommandTestCases.self, "Skipping this test since it will be run in subclasses that will provide different build systems to test.")
}

@discardableResult
Expand Down
2 changes: 1 addition & 1 deletion Tests/CommandsTests/PackageCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import class Basics.AsyncProcess

class PackageCommandTestCase: CommandsBuildProviderTestCase {
override func setUpWithError() throws {
try XCTSkipIf(type(of: self) == PackageCommandTestCase.self, "Pay no attention to the class behind the curtain.")
try XCTSkipIf(type(of: self) == PackageCommandTestCase.self, "Skipping this test since it will be run in subclasses that will provide different build systems to test.")
}

@discardableResult
Expand Down
2 changes: 1 addition & 1 deletion Tests/CommandsTests/RunCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import class Basics.AsyncProcess

class RunCommandTestCase: CommandsBuildProviderTestCase {
override func setUpWithError() throws {
try XCTSkipIf(type(of: self) == RunCommandTestCase.self, "Pay no attention to the class behind the curtain.")
try XCTSkipIf(type(of: self) == RunCommandTestCase.self, "Skipping this test since it will be run in subclasses that will provide different build systems to test.")
}

private func execute(
Expand Down
2 changes: 1 addition & 1 deletion Tests/CommandsTests/TestCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import XCTest

class TestCommandTestCase: CommandsBuildProviderTestCase {
override func setUpWithError() throws {
try XCTSkipIf(type(of: self) == TestCommandTestCase.self, "Pay no attention to the class behind the curtain.")
try XCTSkipIf(type(of: self) == TestCommandTestCase.self, "Skipping this test since it will be run in subclasses that will provide different build systems to test.")
}

private func execute(
Expand Down

0 comments on commit 153eb90

Please sign in to comment.