{"id":17101258,"url":"https://github.com/twittemb/xcodecoverageconverter","last_synced_at":"2025-04-13T00:02:20.512Z","repository":{"id":43041552,"uuid":"268928073","full_name":"twittemb/XcodeCoverageConverter","owner":"twittemb","description":"XcodeCoverageConverter aims to provide a tool to convert xccov code coverage results into continuous integration friendly formats","archived":false,"fork":false,"pushed_at":"2024-03-12T14:43:51.000Z","size":74,"stargazers_count":43,"open_issues_count":4,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-10T03:53:15.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twittemb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-06-02T23:15:09.000Z","updated_at":"2025-02-04T14:28:12.000Z","dependencies_parsed_at":"2024-03-12T16:08:33.452Z","dependency_job_id":null,"html_url":"https://github.com/twittemb/XcodeCoverageConverter","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twittemb%2FXcodeCoverageConverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twittemb%2FXcodeCoverageConverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twittemb%2FXcodeCoverageConverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twittemb%2FXcodeCoverageConverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twittemb","download_url":"https://codeload.github.com/twittemb/XcodeCoverageConverter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647225,"owners_count":21139084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T15:24:31.219Z","updated_at":"2025-04-13T00:02:20.478Z","avatar_url":"https://github.com/twittemb.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XcodeCoverageConverter\n\nThis tool aims to convert Xcode generated code coverage data into CI friendly formats.\n\nPlease execute `xcc generate --help` for all options.\n\n### Installation \n\n`brew install twittemb/formulae/Xcodecoverageconverter`\n\n### From xccov JSON to Cobertura XML\n\n- 1: Generate code coverage data when unit testing. You have to add the following options to the xcodebuild command line: `-derivedDataPath Build/ -enableCodeCoverage YES`\n- 2: Generate JSON from the code coverage data: `xcrun xccov view --report --json Build/Logs/Test/*.xcresult \u003e coverage.json`\n- 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)\n\nThe XML output can then be uploaded to your CI provider as an artefact. It has been sucessfully tested with Azure DevOps pipelines.\n\n### Output formats\n\n`xcc` currently supports these output formats:\n\n- cobertura XML: `cobertura-xml`\n- sonarqube XML: `sonarqube-xml`\n\nYou can specify several output formats in the CLI `/usr/local/bin/xcc generate coverage.json . cobertura-xml sonarqube-xml`\n\n### Contribution\n\nPR are of course welcome. To add new input or output formats, please refer to how `Decoders` and `Converters` are implemented.\n\n### Credits\n\nThis tool is based on the following gist:\n\n[https://gist.github.com/csaby02/ab2441715a89865a7e8e29804df23dc6](https://gist.github.com/csaby02/ab2441715a89865a7e8e29804df23dc6)\n\nThanks to its author.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwittemb%2Fxcodecoverageconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwittemb%2Fxcodecoverageconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwittemb%2Fxcodecoverageconverter/lists"}