https://github.com/codecov/xcode-poc
https://github.com/codecov/xcode-poc
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codecov/xcode-poc
- Owner: codecov
- License: mit
- Created: 2020-02-27T21:46:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-23T17:18:17.000Z (over 2 years ago)
- Last Synced: 2025-09-16T07:48:02.825Z (7 months ago)
- Language: Swift
- Size: 12.3 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xcode + Codecov proof of concept
Demo of Swift/Obj-C/Obj-C++ coverage converted to Codecov proprietary .json format.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
### Prerequisites
* Xcode 11.x
* Node 12.x + npm 6.x
### Installing
Install npm dependencies:
```
$ npm install
```
## Build, run tests, and generate coverage
From project root:
```
$ npm test # if this fails, select a device id and update scripts.test of package.json
# make note of result file after "Test session results, code coverage, and logs:"
$ node generate-codecov-json.js --archive-path ./Build/Logs/Test/RESULT_FILE.xcresult
```
### Upload coverage to Codecov
From project root:
```
$ bash <(curl -s https://codecov.io/bash) -t token -f ./coverage-report.json
```