Code Monkey home page Code Monkey logo

xctestresultparser's Introduction

#XCTestResultParser

Stand-alone covarage graph creator for XCTest framework. It parses "results.plist" generated by Xcode and create coverage reports as a rich browser app. You don't need OS X Server or any CI tool.

Output Sample

Requirement

  • Java Runtime
  • Xcode & XCTest environment
  • Web browser (only Google Chrome is supported right now.)
  • Console

Usage

  1. Download and place xctestresultparser.jar (It parse result.plist files and generate JSONP for the viewer)
  2. Download, unzip andplace xctestresultparser.zip (HTML & JavaScript viewer)
  3. $ java -cp xctestresultparser.jar org.maripo.xctestresultparser.XCTestResultParser --testResultsDir=~/Library/Developer/Xcode/DerivedData/YOUR_SWEET_APP-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/TestResults
  4. Browse the log by opening index.html.
  5. Add the script to Build Phases > Run Script so that the result files are generated just after you run a unit test.

Command-line options

  • --testResultsDir [required] Specify container directory of "result.plist" files
  • --outputJsonDir Specify output directory path of JSONP files
  • --limit Limit number of "result.plist" files to parse & render
  • --help Show help

How can I find the path for test results?

Usually your project directory is located in ~/Library/Developer/Xcode/DerivedData. After finding your project directory, you'll find a directory named "TestResults". It contains your test result files.

Thanks to...

ToDo

  • Render method & class history
  • Add filter (by results, by classes and by dates)
  • Add navigation to next, previous, first and latest results

Contact

twitter:MaripoGoda

xctestresultparser's People

Contributors

maripo avatar

Stargazers

Matthew DeTullio avatar

Watchers

 avatar James Cloos avatar

xctestresultparser's Issues

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.