Skip to content

Commit

Permalink
Document Xcode 7 setup procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
neonichu committed Feb 4, 2016
1 parent f48ec68 commit f3756c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Expand Up @@ -33,21 +33,26 @@ $ bundle

## Usage

Set up your project for test coverage:
Apple drastically improved the support for code coverage in Xcode 7, including dedicated UI for enabling it. You can now setup your project for test coverage inside the scheme editor, by ticking the *"Gather coverage data"* checkbox:

![](README_Images/test_scheme.png)

To verify you're ready to generate test coverage, run your test suite on your project, and then run:

```sh
$ slather setup path/to/project.xcodeproj
$ slather coverage -s path/to/project.xcodeproj
```

This will enable the `Generate Test Coverage` and `Instrument Program Flow` flags for your project.

### Previous versions of Xcode

To verify you're ready to generate test coverage, run your test suite on your project, and then run:
Set up your project for test coverage:

```sh
$ slather coverage -s path/to/project.xcodeproj
$ slather setup path/to/project.xcodeproj
```

This will enable the `Generate Test Coverage` and `Instrument Program Flow` flags for your project.

### Usage with Codecov

Login to [Codecov](https://codecov.io/) (no need to activate a repository, this happens automatically). Right now, `slather` supports Codecov via **all** supported CI providers [listed here](https://github.com/codecov/codecov-bash#ci-providers).
Expand Down
Binary file added README_Images/test_scheme.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f3756c6

Please sign in to comment.