xct

xctester

Commandline test runner for Swift.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

58

Maintenance

Last Commit

5yrs ago

Contributors

3

Package

Dependencies

0

License

MIT

Categories

Readme

xctester

Build Status

Commandline test runner for Swift.

Installation

$ brew tap digoreis/formulae
$ brew install xctester

Note: this needs Xcode 8.0

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100