Latest 0.0.1
Homepage https://github.com/tokorom/TKRSpecificTest
License MIT
Frameworks XCTest, SenTestingKit
Authors

You can run a specific test case by xcodebuild!

Installation

You need to import 4 files.

  • TKRTestSuite.h
  • TKRTestSuite.m
  • XCTestSuite+Only.h
  • XCTestSuite+Only.m

Usage

Specific test class

$ xcodebuild test -scheme Tests -destination "name=iPhone Retina (4-inch 64-bit),OS=7.0" GCC_PREPROCESSOR_DEFINITIONS='DEBUG=1 TEST_ONLY="TestCaseSample1"'

Specific test case

$ xcodebuild test -scheme Tests -destination "name=iPhone Retina (4-inch 64-bit),OS=7.0" GCC_PREPROCESSOR_DEFINITIONS='DEBUG=1 TEST_ONLY="TestCaseSample1/testExample1"'

All tests

$ xcodebuild test -scheme Tests -destination "name=iPhone Retina (4-inch 64-bit),OS=7.0"

Latest podspec

{
    "name": "TKRSpecificTest",
    "version": "0.0.1",
    "summary": "Run a specific test case by xcodebuild.",
    "homepage": "https://github.com/tokorom/TKRSpecificTest",
    "license": "MIT",
    "authors": {
        "tokorom": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tokorom/TKRSpecificTest.git",
        "tag": "0.0.1"
    },
    "source_files": "TKRSpecificTest/*",
    "frameworks": [
        "XCTest",
        "SenTestingKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This