Latest 0.0.1
Homepage https://github.com/dfed/XCTest-watchOS
License Apache License, Version 2.0
Platforms watchos 2.0

CI Status
Carthage Compatibility
Version
License
Platform

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
  2. Include your test files in your new watchOS app extension
  3. Install XCTest-watchOS, and link the included XCTest framework from your new watchOS app extension
  4. Call XCTestCase.runAllTests() from applicationDidFinishLaunching in your WKExtensionDelegate implementation in your new watchOS app extension
  5. Run your new watchOS app, and see if your tests succeed

CocoaPods

Install with CocoaPods by adding the following to your Podfile:

platform :watchos, '2.0'
use_frameworks!
pod 'XCTest-watchOS'

Carthage

Install with Carthage by adding the following to your Cartfile:

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 by adding the following to your Package.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.

Latest podspec

{
    "name": "XCTest-watchOS",
    "version": "0.0.1",
    "license": "Apache License, Version 2.0",
    "summary": "An implementation of XCTest for watchOS",
    "homepage": "https://github.com/dfed/XCTest-watchOS",
    "authors": "Dan Federman",
    "source": {
        "git": "https://github.com/dfed/XCTest-watchOS.git",
        "tag": "0.0.1"
    },
    "source_files": "Sources/**/*.{swift,h}",
    "public_header_files": "Sources/*.h",
    "platforms": {
        "watchos": "2.0"
    }
}

Pin It on Pinterest

Share This