mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-11-24 09:52:48 +03:00
Skip failing test on Linux until upstream fix (#1517)
* Skip failing test on Linux * Skip more tests * Skip more tests * One more skip
This commit is contained in:
parent
2cf88e8088
commit
a51a548a83
@ -124,3 +124,11 @@ extension XCTestCase {
|
||||
describe(name, test)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public func skipIfNecessary() throws {
|
||||
#if os(Linux) && swift(<6.0.2)
|
||||
// https://github.com/swiftlang/swift-foundation/pull/1002
|
||||
throw XCTSkip("Skipping test on Linux until PropertyListDecoder issues are fixed.")
|
||||
#endif
|
||||
}
|
@ -8,7 +8,8 @@ import TestSupport
|
||||
|
||||
class FixtureTests: XCTestCase {
|
||||
|
||||
func testProjectFixture() {
|
||||
func testProjectFixture() throws {
|
||||
try skipIfNecessary()
|
||||
describe {
|
||||
$0.it("generates Test Project") {
|
||||
try generateXcodeProject(specPath: fixturePath + "TestProject/AnotherProject/project.yml")
|
||||
|
@ -1,6 +1,7 @@
|
||||
import Foundation
|
||||
import PathKit
|
||||
import ProjectSpec
|
||||
import TestSupport
|
||||
import XcodeGenKit
|
||||
import XcodeProj
|
||||
import XCTest
|
||||
@ -62,6 +63,7 @@ class FixturePerformanceTests: XCTestCase {
|
||||
}
|
||||
|
||||
func testFixtureGeneration() throws {
|
||||
try skipIfNecessary()
|
||||
let project = try Project(path: specPath)
|
||||
measure {
|
||||
let generator = ProjectGenerator(project: project)
|
||||
@ -70,6 +72,7 @@ class FixturePerformanceTests: XCTestCase {
|
||||
}
|
||||
|
||||
func testFixtureWriting() throws {
|
||||
try skipIfNecessary()
|
||||
let project = try Project(path: specPath)
|
||||
let generator = ProjectGenerator(project: project)
|
||||
let xcodeProject = try generator.generateXcodeProject(userName: "someUser")
|
||||
|
@ -275,7 +275,8 @@ class ProjectGeneratorTests: XCTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
func testTargets() {
|
||||
func testTargets() throws {
|
||||
try skipIfNecessary()
|
||||
describe {
|
||||
|
||||
let project = Project(name: "test", targets: targets)
|
||||
|
@ -41,7 +41,8 @@ private let uiTest = Target(
|
||||
|
||||
class SchemeGeneratorTests: XCTestCase {
|
||||
|
||||
func testSchemes() {
|
||||
func testSchemes() throws {
|
||||
try skipIfNecessary()
|
||||
describe {
|
||||
|
||||
let buildTarget = Scheme.BuildTarget(target: .local(app.name))
|
||||
|
@ -9,7 +9,8 @@ import TestSupport
|
||||
|
||||
class SourceGeneratorTests: XCTestCase {
|
||||
|
||||
func testSourceGenerator() {
|
||||
func testSourceGenerator() throws {
|
||||
try skipIfNecessary()
|
||||
describe {
|
||||
|
||||
let directoryPath = Path("TestDirectory")
|
||||
|
Loading…
Reference in New Issue
Block a user