Generating UI test label automatically.
Objective-C Ruby
Latest commit 00cf0ad Nov 29, 2016 @yulingtianxia update readme
Permalink
Failed to load latest commit information.
TBUIAutoTest v1.1.1 Nov 29, 2016
TBUIAutoTestDemo v1.1.1 Nov 29, 2016
.gitignore Initial commit Nov 7, 2016
LICENSE Initial commit Nov 7, 2016
README.md update readme Nov 29, 2016
TBUIAutoTest.podspec v1.1.1 Nov 29, 2016

README.md

TBUIAutoTest

Generating UI test label automatically.

Articles

为 UIAutomation 添加自动化测试标签的探索

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate TBUIAutoTest into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'MyApp' do
    pod 'TBUIAutoTest'
end

You need replace "MyApp" with your project's name.

Then, run the following command:

$ pod install

Manual

Just drag the "TBUIAutoTest" document folder into your project.

Usage

Turn on TBUIAutoTest in +load method:

[[NSUserDefaults standardUserDefaults] registerDefaults:@{kAutoTestUIKey: @(YES)}];
[[NSUserDefaults standardUserDefaults] synchronize];

Turn off showing infomation when long press view in +load method:

[TBUIAutoTest sharedInstance].longPressEnabled = NO;