Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T10:37:14.000Z (over 4 years ago)
- Last Synced: 2024-10-19T16:09:46.889Z (17 days ago)
- Topics: carthage, cocoapods, ios, objective-c, test-automation, toolkit, xcode
- Language: Objective-C
- Homepage:
- Size: 46.9 KB
- Stars: 349
- Watchers: 9
- Forks: 41
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TBUIAutoTest
[![CI Status](http://img.shields.io/travis/yulingtianxia/TBUIAutoTest.svg?style=flat)](https://travis-ci.org/yulingtianxia/TBUIAutoTest)
[![Version](https://img.shields.io/cocoapods/v/TBUIAutoTest.svg?style=flat)](http://cocoapods.org/pods/TBUIAutoTest)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License](https://img.shields.io/cocoapods/l/TBUIAutoTest.svg?style=flat)](http://cocoapods.org/pods/TBUIAutoTest)
[![Platform](https://img.shields.io/cocoapods/p/TBUIAutoTest.svg?style=flat)](http://cocoapods.org/pods/TBUIAutoTest)
[![CocoaPods](https://img.shields.io/cocoapods/dt/TBUIAutoTest.svg)](http://cocoapods.org/pods/TBUIAutoTest)
[![CocoaPods](https://img.shields.io/cocoapods/at/TBUIAutoTest.svg)](http://cocoapods.org/pods/TBUIAutoTest)
[![Twitter Follow](https://img.shields.io/twitter/follow/yulingtianxia.svg?style=social&label=Follow)](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];
```