Skip to content

Commit d46e758

Browse files
author
Sean Wolter
committed
Merge pull request #3 from designatednerd/master
Add Cobertura output
2 parents cb2cfad + f454a35 commit d46e758

File tree

4 files changed

+390
-1
lines changed

4 files changed

+390
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ There are two places you may want to modify the included files if you are using
7373

7474
1. In `envcov.sh`, `LCOV_INFO` determines the name shown in the report.
7575
2. In `getcov`, edit `exclude_data()` to specify which files to exclude, for example, third-party libraries.
76+
77+
Credits
78+
=======
79+
80+
The `lcov` -> Cobertura script is from [https://github.com/eriwen/lcov-to-cobertura-xml/](https://github.com/eriwen/lcov-to-cobertura-xml/) and is bound by [the license of that project](https://github.com/eriwen/lcov-to-cobertura-xml/blob/master/LICENSE.txt).
81+

XcodeCoverage.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'XcodeCoverage'
33
spec.summary = 'Code coverage for Xcode projects'
4-
spec.version = '1.0.0'
4+
spec.version = '1.0.1'
55
spec.platform = :ios
66
spec.ios.deployment_target = '6.0'
77
spec.authors = {'Jon Reid' => '[email protected]'}

getcov

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ exclude_data()
3636
# Remove other patterns here...
3737
}
3838

39+
generate_cobertura_xml()
40+
{
41+
python "${DIR}/lcov_cobertura.py" ${LCOV_INFO} --base-dir "${SRCROOT}" --output "coverage.xml"
42+
}
43+
3944
generate_report()
4045
{
4146
"${LCOV_PATH}/genhtml" --output-directory . ${LCOV_INFO}
@@ -46,4 +51,5 @@ remove_old_report
4651
enter_lcov_dir
4752
gather_coverage
4853
exclude_data
54+
generate_cobertura_xml
4955
generate_report

0 commit comments

Comments
 (0)