Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dfed/xctest-watchos
XCTest-watchOS provides an implementation of XCTest that can run on watchOS
https://github.com/dfed/xctest-watchos
Last synced: about 2 months ago
JSON representation
XCTest-watchOS provides an implementation of XCTest that can run on watchOS
- Host: GitHub
- URL: https://github.com/dfed/xctest-watchos
- Owner: dfed
- License: apache-2.0
- Created: 2018-08-28T00:48:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T00:48:05.000Z (about 2 months ago)
- Last Synced: 2024-10-29T01:30:41.543Z (about 2 months ago)
- Language: Swift
- Homepage:
- Size: 44.9 KB
- Stars: 19
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: Contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# XCTest-watchOS
[![CI Status](https://img.shields.io/github/actions/workflow/status/dfed/XCTest-watchOS/ci.yml?branch=master)](https://github.com/dfed/XCTest-watchOS/actions?query=workflow%3ACI+branch%3Amaster)
[![Carthage Compatibility](https://img.shields.io/badge/carthage-✓-e2c245.svg)](https://github.com/Carthage/Carthage/)
[![Version](https://img.shields.io/cocoapods/v/XCTest-watchOS.svg)](https://cocoapods.org/pods/XCTest-watchOS)
[![License](https://img.shields.io/cocoapods/l/XCTest-watchOS.svg)](https://cocoapods.org/pods/XCTest-watchOS)
[![Platform](https://img.shields.io/cocoapods/p/XCTest-watchOS.svg)](https://cocoapods.org/pods/XCTest-watchOS)XCTest-watchOS provides an implementation of XCTest that can run on watchOS. XCTest-watchOS allows you to run your library’s existing `XCTest` suite on watchOS with minimal effort.
## Getting Started
1. Create a new watchOS app
1. Include your test files in your new watchOS app extension
1. Install XCTest-watchOS, and link the included XCTest framework from your new watchOS app extension
1. Call `XCTestCase.runAllTestsAndExit()` from `applicationDidFinishLaunching` in your `WKExtensionDelegate` implementation in your new watchOS app extension
1. Run your new watchOS app, and see if your tests succeed### CocoaPods
Install with [CocoaPods](http://cocoapods.org) by adding the following to your `Podfile`:
```
platform :watchos, '2.0'
use_frameworks!
pod 'XCTest-watchOS'
```### Carthage
Install with [Carthage](https://github.com/Carthage/Carthage) by adding the following to your `Cartfile`:
```ogdl
github "dfed/XCTest-watchOS"
```Run `carthage` to build the framework and drag the built `XCTest.framework` into your Xcode project.
### Swift Package Manager
Install with [Swift Package Manager](https://github.com/apple/swift-package-manager) by adding the following to your `Package.swift`:
```swift
dependencies: [
.package(url: "https://github.com/dfed/XCTest-watchOS", from: "0.0.1"),
],
```### Submodules
Or manually checkout the submodule with `git submodule add [email protected]:dfed/XCTest-watchOS.git`, drag `XCTest.xcodeproj` to your project, and add the `XCTest` framework as a build dependency of your test watch app.
## Requirements
* Xcode 9.0 or later.
* watchOS 2 or later.