GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - twittemb/XcodeCoverageConverter: XcodeCoverageConverter aims to provide a tool to convert xccov code coverage results into continuous integration friendly formats

BranchesTags
Open more actions menu

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.swiftpm/xcode
.swiftpm/xcode
 
 
Sources
Sources
 
 
Tests
Tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
Package.resolved
Package.resolved
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 

Repository files navigation

XcodeCoverageConverter

This tool aims to convert Xcode generated code coverage data into CI friendly formats.

Please execute xcc generate --help for all options.

Installation

brew install twittemb/formulae/Xcodecoverageconverter

From xccov JSON to Cobertura XML

  • 1: Generate code coverage data when unit testing. You have to add the following options to the xcodebuild command line: -derivedDataPath Build/ -enableCodeCoverage YES
  • 2: Generate JSON from the code coverage data: xcrun xccov view --report --json Build/Logs/Test/*.xcresult > coverage.json
  • 3: Run xcc to convert the report into a Cobertura XML file: /usr/local/bin/xcc generate coverage.json . cobertura-xml --exclude-packages Tests (this command excludes the Tests package from the export)

The XML output can then be uploaded to your CI provider as an artefact. It has been sucessfully tested with Azure DevOps pipelines.

Output formats

xcc currently supports these output formats:

  • cobertura XML: cobertura-xml
  • sonarqube XML: sonarqube-xml

You can specify several output formats in the CLI /usr/local/bin/xcc generate coverage.json . cobertura-xml sonarqube-xml

Contribution

PR are of course welcome. To add new input or output formats, please refer to how Decoders and Converters are implemented.

Credits

This tool is based on the following gist:

https://gist.github.com/csaby02/ab2441715a89865a7e8e29804df23dc6

Thanks to its author.

About

XcodeCoverageConverter aims to provide a tool to convert xccov code coverage results into continuous integration friendly formats

Resources

Readme
MIT license
Activity

Stars

45 stars

Watchers

3 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.