diff --git a/Package.swift b/Package.swift index 088e9654..fd3a36fc 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,8 @@ let package = Package( products: [ .library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]), .library(name: "AsyncSequenceValidation", targets: ["AsyncSequenceValidation"]), - .library(name: "_CAsyncSequenceValidationSupport", type: .static, targets: ["AsyncSequenceValidation"]) + .library(name: "_CAsyncSequenceValidationSupport", type: .static, targets: ["AsyncSequenceValidation"]), + .library(name: "AsyncAlgorithms_XCTest", targets: ["AsyncAlgorithms_XCTest"]), ], dependencies: [], targets: [ @@ -22,9 +23,17 @@ let package = Package( name: "AsyncSequenceValidation", dependencies: ["_CAsyncSequenceValidationSupport", "AsyncAlgorithms"]), .systemLibrary(name: "_CAsyncSequenceValidationSupport"), + .target( + name: "AsyncAlgorithms_XCTest", + dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"], + swiftSettings: [ + .unsafeFlags([ + "-Xfrontend", "-disable-availability-checking" + ]) + ]), .testTarget( name: "AsyncAlgorithmsTests", - dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"], + dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation", "AsyncAlgorithms_XCTest"], swiftSettings: [ .unsafeFlags([ "-Xfrontend", "-disable-availability-checking" diff --git a/Tests/AsyncAlgorithmsTests/Support/ValidationTest.swift b/Sources/AsyncAlgorithms_XCTest/ValidationTest.swift similarity index 100% rename from Tests/AsyncAlgorithmsTests/Support/ValidationTest.swift rename to Sources/AsyncAlgorithms_XCTest/ValidationTest.swift diff --git a/Tests/AsyncAlgorithmsTests/TestValidationTests.swift b/Tests/AsyncAlgorithmsTests/TestValidationTests.swift index 2f42c5f2..f60259c1 100644 --- a/Tests/AsyncAlgorithmsTests/TestValidationTests.swift +++ b/Tests/AsyncAlgorithmsTests/TestValidationTests.swift @@ -12,6 +12,7 @@ import XCTest import AsyncAlgorithms import AsyncSequenceValidation +@testable import AsyncAlgorithms_XCTest final class TestValidationDiagram: XCTestCase { func test_diagram() {