Latest 0.3.0
Homepage https://github.com/neonichu/xctester
License MIT
Platforms ios 7.0, osx 10.9, requires ARC
Frameworks XCTest
Authors

Build Status

Commandline test runner for Swift.

Installation

$ brew tap neonichu/formulae
$ brew install xctester

Note: this needs Xcode 7.3.1

Usage

Having to create those pesky Xcode projects just to run your tests is
annoying. With xctester, you don’t have to anymore.

Consider this test case:

import XCTest

class MyTests : XCTestCase {
  func testAdd() {
    let result = add(3, 5)
    XCTAssertEqual(result, 8, "")
  }

  func testAddFail() {
    XCTAssertTrue(false, "lol")
  }

  func testThrows() {
    NSException.raise("Exception", format:"#yolo", arguments: getVaList([]))
  }
}

Simply running xctester will execute the tests and give you the results:

MyTests

✅  -[MyTests testAdd]
❌  -[MyTests testAddFail]
    XCTAssertTrue failed - lol
❌  -[MyTests testThrows]
    failed: caught "Exception", "#yolo"

 Executed 2 tests, with 1 failures (1 unexpected) in 0.001 seconds

License

xctester is licensed under the MIT license. See LICENSE for
more information.

Latest podspec

{
    "name": "xctester",
    "version": "0.3.0",
    "summary": "Run, XCTest, run",
    "homepage": "https://github.com/neonichu/xctester",
    "license": "MIT",
    "authors": {
        "Boris Bu00fcgling": "[email protected]"
    },
    "social_media_url": "http://twitter.com/NeoNacho",
    "platforms": {
        "ios": "7.0",
        "osx": "10.9"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/neonichu/xctester.git",
        "tag": "0.3.0"
    },
    "source_files": "code/XCTestCaseExtensions.swift",
    "frameworks": "XCTest"
}

Pin It on Pinterest

Share This