https://github.com/yulingtianxia/tbuiautotest
Generating UI test label automatically for iOS.
https://github.com/yulingtianxia/tbuiautotest
carthage cocoapods ios objective-c test-automation toolkit xcode
Last synced: 15 days ago
JSON representation
Generating UI test label automatically for iOS.
- Host: GitHub
- URL: https://github.com/yulingtianxia/tbuiautotest
- Owner: yulingtianxia
- License: mit
- Created: 2016-11-07T08:42:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T10:37:14.000Z (almost 5 years ago)
- Last Synced: 2025-03-31T12:08:34.371Z (22 days ago)
- Topics: carthage, cocoapods, ios, objective-c, test-automation, toolkit, xcode
- Language: Objective-C
- Homepage:
- Size: 46.9 KB
- Stars: 348
- Watchers: 8
- Forks: 42
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TBUIAutoTest
[](https://travis-ci.org/yulingtianxia/TBUIAutoTest)
[](http://cocoapods.org/pods/TBUIAutoTest)
[](https://github.com/Carthage/Carthage)
[](http://cocoapods.org/pods/TBUIAutoTest)
[](http://cocoapods.org/pods/TBUIAutoTest)
[](http://cocoapods.org/pods/TBUIAutoTest)
[](http://cocoapods.org/pods/TBUIAutoTest)
[](https://twitter.com/yulingtianxia)Generating UI test label automatically.
## Articles
[为 UIAutomation 添加自动化测试标签的探索](http://yulingtianxia.com/blog/2016/03/28/Add-UITest-Label-for-UIAutomation/)
## Installation
### CocoaPods[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ 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:
```bash
$ pod install
```### Carthage
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
```bash
$ brew update
$ brew install carthage
```To integrate TBUIAutoTest into your Xcode project using Carthage, specify it in your `Cartfile`:
```ogdl
github "yulingtianxia/TBUIAutoTest"
```Run `carthage update` to build the framework and drag the built `TBUIAutoTest.framework` into your Xcode project.
### Manual
Just drag the "TBUIAutoTest" document folder into your project.
## Usage
Turn on TBUIAutoTest in `+load` method:
```
extern NSString * const kAutoTestUITurnOnKey;
[NSUserDefaults.standardUserDefaults setBool:YES forKey:kAutoTestUITurnOnKey];
```Turn on showing infomation when long press view in `+load` method:
```
extern NSString * const kAutoTestUILongPressKey;
[NSUserDefaults.standardUserDefaults setBool:YES forKey:kAutoTestUILongPressKey];
```