Coder Social home page Coder Social logo

brightcoveos / ocunit2junit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ciryon/ocunit2junit

0.0 5.0 1.0 70 KB

A script that converts output from OCUnit in xcodebuild to the XML format used by JUnit. This allows for XCode builds on continuos integration servers like Jenkins, complete with test reports!

Ruby 74.05% Groff 22.20% Objective-C 3.75%

ocunit2junit's Introduction

Build Status

Introduction

OCUnit2JUnit is a script that converts output from OCUnit or Kiwi to the format used by JUnit. The main purpose is to be able to parse output from Objective-C (OCUnit) test cases on a Java-based build server, such as Jenkins.

Installation

  • Install with 'gem install ocunit2junit' (possibly prepended by 'sudo' if your Ruby installation requires that)

Usage

  • Make sure your build server can access the xcodebuild executable

  • Use this shell command to build:

    xcodebuild -target <target> -sdk <sdk> -configuration <config> 2>&1 | ocunit2junit

  • The output is, by default, in the test-reports folder

  • If your build fails, this script will pass the error code

  • All output is also passed along, so you will still see everything in your build log

Kiwi

This script also generates human readable test results for Kiwi BDD Testing Framework:

Example output

However, if you don't want this, you can disable it in the header:

SUPPORT_KIWI = false

More information

  • If you're having issues with character encoding, please upgrade to Ruby 1.9.2 or later.
  • More info can be found in this blog post.

Licence

Free to use however you want.

Author

OCUnit2JUnit was created by Christian Hedin. Twitter: @ciryon Google Plus: https://plus.google.com/103286810504956788514/

ocunit2junit's People

Contributors

ciryon avatar e28eta avatar andrewsardone avatar lowammo avatar jonnolen avatar keithduncan avatar marklarr avatar djx339 avatar yiyuanlu avatar

Watchers

Brian Franklin avatar Robert Crooks avatar Michael Moscardini avatar James Cloos avatar  avatar

Forkers

isabella232

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.