Skip to content

Commit 86c3fdb

Browse files
committed
Swift package manager support
KIF is on openium fork's master branch, waiting PR merge
1 parent c2a10e0 commit 86c3fdb

File tree

27 files changed

+377
-158
lines changed

27 files changed

+377
-158
lines changed

.gitmodules

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
[submodule "Carthage/Checkouts/KIF"]
2-
path = Carthage/Checkouts/KIF
3-
url = https://github.com/kif-framework/KIF.git
4-
[submodule "Carthage/Checkouts/OHHTTPStubs"]
5-
path = Carthage/Checkouts/OHHTTPStubs
6-
url = https://github.com/AliSoftware/OHHTTPStubs.git
7-
[submodule "Carthage/Checkouts/SimulatorStatusMagic"]
8-
path = Carthage/Checkouts/SimulatorStatusMagic
9-
url = https://github.com/shinydevelopment/SimulatorStatusMagic.git

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## [Unreleased](https://github.com/openium/SwiftiumTestingKit/compare/v0.6.0...HEAD)
77
### Added
8+
Swift Package Manager support
89

9-
### Changed
10+
### Changed
1011

1112
### Removed
13+
Carthage support
14+
SimulatorStatusBarMagic
1215

1316
## [0.6.2](https://github.com/openium/SwiftiumTestingKit/compare/v0.6.2...v0.6.1)
1417
### Added

Cartfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

Cartfile.resolved

Lines changed: 0 additions & 3 deletions
This file was deleted.

Carthage/Checkouts/KIF

Lines changed: 0 additions & 1 deletion
This file was deleted.

Carthage/Checkouts/OHHTTPStubs

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.

Package.resolved

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// swift-tools-version:5.2
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
// https://github.com/apple/swift-package-manager/blob/master/Documentation/Usage.md
4+
5+
import PackageDescription
6+
7+
let package = Package(
8+
name: "SwiftiumTestingKit",
9+
platforms: [
10+
.iOS(.v10)
11+
],
12+
products: [
13+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
14+
.library(
15+
name: "SwiftiumTestingKit",
16+
targets: ["SwiftiumTestingKit"]),
17+
],
18+
dependencies: [
19+
// Dependencies declare other packages that this package depends on.
20+
.package(url: "https://github.com/AliSoftware/OHHTTPStubs", from: "9.0.0"),
21+
.package(url: "https://github.com/openium/KIF", .branch("master")),
22+
],
23+
targets: [
24+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
25+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
26+
.target(
27+
name: "SwiftiumTestingKit",
28+
dependencies: [
29+
.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs"),
30+
"KIF",
31+
]),
32+
.testTarget(
33+
name: "SwiftiumTestingKitTests",
34+
dependencies: ["SwiftiumTestingKit"]),
35+
]
36+
)

README.md

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# SwiftiumKit
2-
3-
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
1+
# SwiftiumTestingKit
42

53
This "Kit" adds many feature to speed up iOS app testing. It allows to write Unit tests for testing view controllers "quicker than UI Tests".
64

@@ -26,34 +24,16 @@ see more in [STKSoloTests.swift](https://github.com/openium/SwiftiumTestingKit/b
2624

2725
## Installation
2826

29-
### Carthage
30-
31-
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
32-
33-
You can install Carthage with [Homebrew](https://brew.sh/) using the following command:
34-
35-
```bash
36-
$ brew update
37-
$ brew install carthage
38-
```
27+
### Swift Package Manager
3928

40-
To integrate Alamofire into your Xcode project using Carthage, specify it in your `Cartfile`:
41-
42-
```ogdl
43-
github "openium/SwiftiumTestingKit" ~> latest
44-
```
45-
46-
Run `carthage update` to build the framework and drag the built `SwiftiumTestingKit.framework` into your Xcode project.
29+
See [official documentation](https://github.com/apple/swift-package-manager/tree/master/Documentation)
4730

4831
### Setup
4932

50-
Add the following frameworks to your test target and add a `Copy Files` with `frameworks` destimations to your test target build phases:
51-
- `SimulatorStatusMagiciOS.framework`
52-
- `OHHTTPStubs.framework`
53-
- `SwiftiumTestingKit.framework`
54-
- `KIF.framework`
55-
56-
![](doc/copy-frameworks.png)
33+
Add the following libraries to your test target :
34+
- `OHHTTPStubs`
35+
- `SwiftiumTestingKit`
36+
- `KIF`
5737

5838
# To be done :
5939

0 commit comments

Comments
 (0)