This commit is contained in:
417-72KI 2019-12-16 16:05:06 +09:00
parent 5bf8b0e5e0
commit 353f13f235
15 changed files with 17 additions and 17 deletions

View File

@ -4,7 +4,7 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "MultipartFormDataTestUtil", name: "MultipartFormDataSwiftKit",
platforms: [ platforms: [
.macOS(.v10_14), .macOS(.v10_14),
.iOS(.v11), .iOS(.v11),
@ -14,8 +14,8 @@ let package = Package(
products: [ products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages. // Products define the executables and libraries produced by a package, and make them visible to other packages.
.library( .library(
name: "MultipartFormDataTestUtil", name: "MultipartFormDataSwiftKit",
targets: ["MultipartFormDataTestUtil"]), targets: ["MultipartFormDataSwiftKit"]),
], ],
dependencies: [ dependencies: [
// Dependencies declare other packages that this package depends on. // Dependencies declare other packages that this package depends on.
@ -26,12 +26,12 @@ let package = Package(
// Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on. // Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target( .target(
name: "MultipartFormDataTestUtil", name: "MultipartFormDataSwiftKit",
dependencies: []), dependencies: []),
.testTarget( .testTarget(
name: "MultipartFormDataTestUtilTests", name: "MultipartFormDataSwiftKitTests",
dependencies: [ dependencies: [
"MultipartFormDataTestUtil", "MultipartFormDataSwiftKit",
"Alamofire", "Alamofire",
"OHHTTPStubsSwift" "OHHTTPStubsSwift"
] ]

View File

@ -1,3 +1,3 @@
# MultipartFormDataTestUtil # MultipartFormDataSwiftKit
A description of this package. A description of this package.

View File

@ -0,0 +1,2 @@
struct MultipartFormDataSwiftKit {
}

View File

@ -1,2 +0,0 @@
struct MultipartFormDataTestUtil {
}

View File

@ -1,7 +1,7 @@
import XCTest import XCTest
import MultipartFormDataTestUtilTests import MultipartFormDataSwiftKitTests
var tests = [XCTestCaseEntry]() var tests = [XCTestCaseEntry]()
tests += MultipartFormDataTestUtilTests.allTests() tests += MultipartFormDataSwiftKitTests.allTests()
XCTMain(tests) XCTMain(tests)

View File

@ -3,11 +3,11 @@ import Alamofire
import OHHTTPStubs import OHHTTPStubs
import OHHTTPStubsSwift import OHHTTPStubsSwift
import MultipartFormDataTestUtil import MultipartFormDataSwiftKit
#if canImport(Cocoa) #if canImport(Cocoa)
import Cocoa import Cocoa
final class MultipartFormDataTestUtil_CocoaTests: XCTestCase { final class MultipartFormDataSwiftKit_CocoaTests: XCTestCase {
override class func setUp() { override class func setUp() {
super.setUp() super.setUp()

View File

@ -3,12 +3,12 @@ import Alamofire
import OHHTTPStubs import OHHTTPStubs
import OHHTTPStubsSwift import OHHTTPStubsSwift
import MultipartFormDataTestUtil import MultipartFormDataSwiftKit
#if canImport(UIKit) #if canImport(UIKit)
import UIKit import UIKit
final class MultipartFormDataTestUtil_UIKitTests: XCTestCase { final class MultipartFormDataSwiftKit_UIKitTests: XCTestCase {
override class func setUp() { override class func setUp() {
super.setUp() super.setUp()

View File

@ -11,7 +11,7 @@ typealias Image = UIImage
import OHHTTPStubs import OHHTTPStubs
import OHHTTPStubsSwift import OHHTTPStubsSwift
import MultipartFormDataTestUtil import MultipartFormDataSwiftKit
var uploadTestStubResponse: OHHTTPStubsResponseBlock = { request in var uploadTestStubResponse: OHHTTPStubsResponseBlock = { request in
let errorResponse = { (message: String) -> OHHTTPStubsResponse in let errorResponse = { (message: String) -> OHHTTPStubsResponse in

View File

@ -3,7 +3,7 @@ import XCTest
#if !canImport(ObjectiveC) #if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] { public func allTests() -> [XCTestCaseEntry] {
return [ return [
testCase(MultipartFormDataTestUtilTests.allTests), testCase(MultipartFormDataSwiftKitTests.allTests),
] ]
} }
#endif #endif