Giter Site home page Giter Site logo

thii / xctestrunner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/xctestrunner

0.0 1.0 0.0 226 KB

A executable binary to run prebuilt iOS tests on iOS simulator/real device.

License: Apache License 2.0

Python 99.12% Starlark 0.88%

xctestrunner's Introduction

XCTestRunner

A tool for running prebuilt iOS tests on iOS real device and simulator.

Features

  • It supports XCTest (Xcode Unit Test), XCUITest (Xcode UI Test).
  • It supports iOS 7+ iOS real device, iOS simulator.
  • It supports launch options configuration: test methods to run, additional environment variables, additional arguments.
  • It supports Xcode 8+.

Prerequisites

  • Install Xcode (Xcode 8+). XCUITest support requires Xcode 8+.
  • Install bazel (optional).
  • py module biplist.

Installation

You can download the ios_test_runner.par binary in release

or build the ios_test_runner.par binary by bazel:

$ git clone https://github.com/google/xctestrunner.git
$ cd xctestrunner
$ bazel build :ios_test_runner.par
$ ls bazel-bin/ios_test_runner.par

Usage

  • Build your app under test and test bundle. You can use Xcode.app, xcodebuild command line tool or bazel.
  • Run the ios_test_runner.par binary.

In overview, there are two sub-commands in the runner binary.

  • test: Run test directly on connecting iOS real device or existing iOS simulator.
  • simulator_test: Run test on a new created simulator, which will be deleted after test finishes.

See more details by running ios_test_runner.par -h in terminal.

Notes

Disclaimer: This is not an official Google product.

XCTestRunner uses Apple native tool xcodebuild, simctl to control iOS Simulator and launch tests on iOS devices.

For testing, XCTestRunner injects app under test and test bundle file into a dummy project. Then the dummy project can be used xcodebuild test to run XCTest (not for XCUITest), or xcodebuild build-for-testing to generate xctestrun file for further testing.

For iOS 7 real device testing, the latest supported Xcode version is 7.2.1. For iOS 7 simulator testing, latest supported Xcode version is 7.2.1 and latest supported MacOS version is Yosemite (10.10.x).

xctestrunner's People

Contributors

albertdai avatar brentleyjones avatar chenxiao0228 avatar jerrymarino avatar jverkoey avatar keith avatar segiddins avatar woshimaliang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.