Skip to content

Commit

Permalink
Loudly specify where other coverage tools are.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper Blues committed Sep 15, 2013
1 parent e156637 commit 5ae2fd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build-configuration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ workspace=Typhoon.xcworkspace
#------------------------------------------------------- Code Coverage ------------------------------------------------#
framework.symbols=TyphoonRXMLElement.m TyphoonJRSwizzle.m
gen.info=/usr/local/bin/geninfo
lcov=/usr/local/bin/lcov
gen.html=/usr/local/bin/genhtml
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
${gen.info} ${temp.dir}/coverage-data/*.gcno --no-recursion --output-filename \
${temp.dir}/${module.name}-temp.info
#Remove symbols we're not interested in.
lcov -r ${temp.dir}/${module.name}-temp.info ${framework.symbols} > ${temp.dir}/${module.name}.info
${lcov} -r ${temp.dir}/${module.name}-temp.info ${framework.symbols} > ${temp.dir}/${module.name}.info
</echo>
<chmod perm="+x" file="${temp.dir}/geninfo.sh"/>
<exec executable="${temp.dir}/geninfo.sh" failonerror="true" failifexecutionfails="true"/>
Expand All @@ -213,7 +213,7 @@
#!/bin/bash
set -e # fail script if any commands fail

genhtml --no-function-coverage --no-branch-coverage -o ${coverage.reports.dir} \
${gen.html} --no-function-coverage --no-branch-coverage -o ${coverage.reports.dir} \
--prefix ${basedir} ${temp.dir}/${module.name}.info
</echo>
<chmod perm="+x" file="${temp.dir}/genhtml.sh"/>
Expand Down

0 comments on commit 5ae2fd0

Please sign in to comment.