Bogon / TBUIAutoTest

Generating UI test label automatically.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

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

Turn off showing infomation when long press view:

[TBUIAutoTest sharedInstance].longPressEnabled = NO;

About

Generating UI test label automatically.

License:MIT License


Languages

Language:Objective-C 95.5%Language:Ruby 4.5%