talira

xcresultparser

Parse the binary .xcresult bundles from Xcode builds and test runs

open sourceMITfree

xcresultparser is a command-line tool that reads the binary .xcresult bundle Xcode writes for builds and test runs (through xcresulttool and xccov) and prints its test results and code coverage as plain or coloured text, XML, JUnit, Cobertura, HTML, Markdown, or lists of warnings and errors. JUnit and SonarQube's generic XML formats make it a bridge from Xcode to CI systems and code quality dashboards, paths can be made relative to a project root, and it marks flaky tests (failed, then passed on retry) and expected failures distinctly.

Ways to install

Problems it solves

  • convert Xcode test results to JUnit XML for my CI
  • send Xcode code coverage to SonarQube
  • show a summary of failed iOS tests in a pull request comment

Features

  • test results and coverage from .xcresult bundles
  • JUnit, Cobertura, SonarQube XML, HTML, Markdown and text output
  • flaky test detection
  • paths relative to a project root

Alternatives

The same job

These do what xcresultparser does.

  1. jest-junit Jest reporter that writes JUnit XML files
  2. rspec_junit_formatter Writes RSpec results as JUnit XML that CI services can read
  3. minitest-reporters Customizable output formats for Ruby's Minitest

Compare xcresultparser with the top 3