An open API service indexing awesome lists of open source software.

https://github.com/codecov/xcode-poc


https://github.com/codecov/xcode-poc

Last synced: 7 months ago
JSON representation

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
```