Skip to content

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 Hudson, complete with test reports!

Notifications You must be signed in to change notification settings

shaune/OCUnit2JUnit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Introduction

OCUnit2JUnit is a script that converts output from OCUnit 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 Hudson.

Usage

  • Put the script somewhere where your build server can read it

  • Use this shell command to build:

    xcodebuild -t <target> -sdk <sdk> -configuration <config> | /path/to/ocunit2junit.rb

  • 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

More information

Can be found in this blog post.

Licence

Free to use however you want.

About

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 Hudson, complete with test reports!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published