Rename
This commit is contained in:
parent
02154a99f8
commit
7c855e99df
|
@ -29,7 +29,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: macOS
|
||||
run: set -o pipefail && xcrun xcodebuild test -scheme MultipartFormDataSwiftKit -destination "platform=macOS" clean test | xcpretty
|
||||
run: set -o pipefail && xcrun xcodebuild test -scheme MultipartFormDataParser -destination "platform=macOS" clean test | xcpretty
|
||||
iOS:
|
||||
name: Test on iOS
|
||||
runs-on: macOS-latest
|
||||
|
@ -41,7 +41,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: iOS - ${{ matrix.destination }}
|
||||
run: set -o pipefail && xcrun xcodebuild -scheme MultipartFormDataSwiftKit -destination "${{ matrix.destination }}" clean test | xcpretty
|
||||
run: set -o pipefail && xcrun xcodebuild -scheme MultipartFormDataParser -destination "${{ matrix.destination }}" clean test | xcpretty
|
||||
tvOS:
|
||||
name: Test on tvOS
|
||||
runs-on: macOS-latest
|
||||
|
@ -53,7 +53,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: tvOS - ${{ matrix.destination }}
|
||||
run: set -o pipefail && xcrun xcodebuild -scheme "MultipartFormDataSwiftKit" -destination "${{ matrix.destination }}" clean test | xcpretty
|
||||
run: set -o pipefail && xcrun xcodebuild -scheme "MultipartFormDataParser" -destination "${{ matrix.destination }}" clean test | xcpretty
|
||||
# watchOS:
|
||||
# name: Test on watchOS
|
||||
# runs-on: macOS-latest
|
||||
|
@ -65,4 +65,4 @@ jobs:
|
|||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - name: watchOS - ${{ matrix.destination }}
|
||||
# run: set -o pipefail && xcrun xcodebuild -scheme "MultipartFormDataSwiftKit" -destination "${{ matrix.destination }}" clean build | xcpretty
|
||||
# run: set -o pipefail && xcrun xcodebuild -scheme "MultipartFormDataParser" -destination "${{ matrix.destination }}" clean build | xcpretty
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "MultipartFormDataSwiftKit",
|
||||
name: "MultipartFormDataParser",
|
||||
platforms: [
|
||||
.macOS(.v10_14),
|
||||
.iOS(.v11),
|
||||
|
@ -14,8 +14,8 @@ let package = Package(
|
|||
products: [
|
||||
// Products define the executables and libraries produced by a package, and make them visible to other packages.
|
||||
.library(
|
||||
name: "MultipartFormDataSwiftKit",
|
||||
targets: ["MultipartFormDataSwiftKit"]),
|
||||
name: "MultipartFormDataParser",
|
||||
targets: ["MultipartFormDataParser"]),
|
||||
],
|
||||
dependencies: [
|
||||
// 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 can depend on other targets in this package, and on products in packages which this package depends on.
|
||||
.target(
|
||||
name: "MultipartFormDataSwiftKit",
|
||||
name: "MultipartFormDataParser",
|
||||
dependencies: []),
|
||||
.testTarget(
|
||||
name: "MultipartFormDataSwiftKitTests",
|
||||
name: "MultipartFormDataParserTests",
|
||||
dependencies: [
|
||||
"MultipartFormDataSwiftKit",
|
||||
"MultipartFormDataParser",
|
||||
"Alamofire",
|
||||
"OHHTTPStubsSwift"
|
||||
]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# MultipartFormDataSwiftKit
|
||||
# MultipartFormDataParser
|
||||
|
||||
A description of this package.
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import Foundation
|
||||
|
||||
public enum MultipartFormDataSwiftKit {
|
||||
enum Info {
|
||||
static let version = "1.0.0"
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import XCTest
|
||||
|
||||
import MultipartFormDataSwiftKitTests
|
||||
import MultipartFormDataParserTests
|
||||
|
||||
var tests = [XCTestCaseEntry]()
|
||||
tests += MultipartFormDataSwiftKitTests.allTests()
|
||||
tests += MultipartFormDataParserTests.allTests()
|
||||
XCTMain(tests)
|
||||
|
|
|
@ -3,11 +3,11 @@ import Alamofire
|
|||
import OHHTTPStubs
|
||||
import OHHTTPStubsSwift
|
||||
|
||||
import MultipartFormDataSwiftKit
|
||||
import MultipartFormDataParser
|
||||
|
||||
#if canImport(Cocoa)
|
||||
import Cocoa
|
||||
final class MultipartFormDataSwiftKit_CocoaTests: XCTestCase {
|
||||
final class MultipartFormDataParser_CocoaTests: XCTestCase {
|
||||
|
||||
override class func setUp() {
|
||||
super.setUp()
|
|
@ -3,12 +3,12 @@ import Alamofire
|
|||
import OHHTTPStubs
|
||||
import OHHTTPStubsSwift
|
||||
|
||||
import MultipartFormDataSwiftKit
|
||||
import MultipartFormDataParser
|
||||
|
||||
#if canImport(UIKit)
|
||||
import UIKit
|
||||
|
||||
final class MultipartFormDataSwiftKit_UIKitTests: XCTestCase {
|
||||
final class MultipartFormDataParser_UIKitTests: XCTestCase {
|
||||
|
||||
override class func setUp() {
|
||||
super.setUp()
|
|
@ -11,7 +11,7 @@ typealias Image = UIImage
|
|||
import OHHTTPStubs
|
||||
import OHHTTPStubsSwift
|
||||
|
||||
import MultipartFormDataSwiftKit
|
||||
import MultipartFormDataParser
|
||||
|
||||
var uploadTestStubResponse: OHHTTPStubsResponseBlock = { request in
|
||||
let errorResponse = { (message: String) -> OHHTTPStubsResponse in
|
|
@ -3,7 +3,7 @@ import XCTest
|
|||
#if !canImport(ObjectiveC)
|
||||
public func allTests() -> [XCTestCaseEntry] {
|
||||
return [
|
||||
testCase(MultipartFormDataSwiftKitTests.allTests),
|
||||
testCase(MultipartFormDataParserTests.allTests),
|
||||
]
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue