Latest 0.1.0
Homepage https://github.com/soutaro/XcodeTestNavigatorFix
License MIT
Platforms ios 7.0, osx 10.9, tvos 9.0, requires ARC
Frameworks XCTest

The Issue

Xcode 7.1 allows last run test case to disappear from Test Navigator every time.

Xcode

This happens when your test case is not defined as testABC method, but dynamically defined through your test framework (as Quick does).

This Pod is a workaround for this.

How it works

  1. Hook the test suite start via observer
  2. Add one test case to last suite to be executed
  3. Xcode still drops the last run test case, but keeps your tests :smile:

Xcode

How to use

Link this library to your test.

A typical Podfile would be like the following:

target :YourLibraryTest, exclusive: true do
  pod "XcodeTestNavigatorFix"
  pod ...
end

Latest podspec

{
    "name": "XcodeTestNavigatorFix",
    "version": "0.1.0",
    "summary": "Prevent last run test case from disappearing from Xcode Test Navigator",
    "homepage": "https://github.com/soutaro/XcodeTestNavigatorFix",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "Soutaro Matsumoto",
    "platforms": {
        "ios": "7.0",
        "osx": "10.9",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/soutaro/XcodeTestNavigatorFix.git",
        "tag": "v0.1.0"
    },
    "source_files": "XcodeTestNavigatorFix/TestNavigatorFix.m",
    "public_header_files": [],
    "frameworks": "XCTest",
    "requires_arc": true,
    "pod_target_xcconfig": {
        "ENABLE_BITCODE": "NO"
    }
}

Pin It on Pinterest

Share This