Skip to content

Commit 0b86c80

Browse files
committed
Merge branch 'feature-temp-profdata' into feature-profdata
2 parents 61f0098 + 84c54a9 commit 0b86c80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2479
-90
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ mkmf.log
2323

2424
# Xcode
2525
#
26-
build/
2726
*.pbxuser
2827
!default.pbxuser
2928
*.mode1v3
@@ -41,3 +40,7 @@ DerivedData
4140
*.xcuserstate
4241
*.DS_Store
4342
cobertura.xml
43+
.gutter.json
44+
html
45+
*.gcda
46+
*.gcno

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: objective-c
22
script: bundle exec rspec
3+
osx_image: xcode7
34

45
# Sets Travis to run the Ruby specs on OS X machines which are required to
56
# build the native extensions of Xcodeproj.

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
## master
44

5+
## v1.8.2
6+
* Add buildkite support to coveralls
7+
[David Hardiman](https://github.com/dhardiman)
8+
[#98](https://github.com/venmo/slather/pull/98)
9+
10+
11+
## v1.8.1
12+
* Fixed dependency conflict with CocoaPods v0.38
13+
* Updated usage of cocoapods plugin API since it has changed in v0.38
14+
[Julian Krumow](https://github.com/tarbrain)
15+
[#95](https://github.com/venmo/slather/pull/95)
16+
517
## v1.7.0
618
* Objective-C++ support
719
[ben-ng](https://github.com/ben-ng)

README.md

+54-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,47 @@ To verify you're ready to generate test coverage, run your test suite on your pr
4949
$ slather coverage -s path/to/project.xcodeproj
5050
```
5151

52+
### Usage with Codecov
53+
54+
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).
55+
56+
Make a `.slather.yml` file:
57+
58+
```yml
59+
# .slather.yml
60+
61+
coverage_service: cobertura_xml
62+
xcodeproj: path/to/project.xcodeproj
63+
source_directory: path/to/sources/to/include
64+
output_directory: path/to/xml_report
65+
ignore:
66+
- ExamplePodCode/*
67+
- ProjectTestsGroup/*
68+
```
69+
70+
And then in your `.travis.yml`, `circle.yml` (or after test commands in other CI providers), call `slather` after a successful build:
71+
72+
```yml
73+
# .travis.yml
74+
75+
before_install: rvm use $RVM_RUBY_VERSION
76+
install: bundle install --without=documentation --path ../travis_bundle_dir
77+
after_success:
78+
- slather
79+
- bash <(curl -s https://codecov.io/bash) -f path/to/xml_report/cobertura.xml
80+
```
81+
82+
```yml
83+
# circle.yml
84+
85+
test:
86+
post:
87+
- bundle exec slather
88+
- bash <(curl -s https://codecov.io/bash)
89+
```
90+
91+
> Private repo? Add `-t :uuid-repo-token` to the codecov uploader. Read more about uploading report to Codecov [here](https://github.com/codecov/codecov-bash)
92+
5293
### Usage with Coveralls
5394

5495
Login to [Coveralls](https://coveralls.io/) and enable your repository. Right now, `slather` supports Coveralls via [Travis CI](https://travis-ci.org) and [CircleCI](https://circleci.com).
@@ -113,12 +154,22 @@ ignore:
113154
- ProjectTestsGroup/*
114155
```
115156

116-
Or use the command line options `--cobertura-xml` or `-x` and `--output_directory`:
157+
Or use the command line options `--cobertura-xml` or `-x` and `--output-directory`:
117158

118159
```sh
119160
$ slather coverage -x --output-directory path/to/xml_report
120161
```
121162

163+
### Static HTML
164+
165+
To create a report as static html pages, use the command line options `--html`:
166+
167+
```sh
168+
$ slather coverage --html path/to/project.xcodeproj
169+
```
170+
171+
This will make a directory named `html` in your root directory (unless `--output-directory` is specified) and will generate all the reports as static html pages inside the directory. It will print out the report's path by default, but you can also specify `--show` flag to open it in your browser automatically.
172+
122173
### Coverage for code included via CocoaPods
123174

124175
If you're trying to compute the coverage of code that has been included via
@@ -152,3 +203,5 @@ Please make sure to follow our general coding style and add test coverage for ne
152203
* [@tpoulos](https://github.com/tpoulos), the perfect logo.
153204
* [@ayanonagon](https://github.com/ayanonagon) and [@kylef](https://github.com/kylef), feedback and testing.
154205
* [@jhersh](https://github.com/jhersh), CircleCI support.
206+
* [@tarbrain](https://github.com/tarbrain), Cobertura support and bugfixing.
207+
* [@ikhsan](https://github.com/ikhsan), html support.

Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
require "bundler/gem_tasks"
2+
3+
desc 'Execute tests'
4+
task :spec do
5+
sh 'bundle exec rspec spec'
6+
end
7+

assets/highlight.pack.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/list.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)