Skip to content

Commit

Permalink
Added gcovr post report generation for the gcov plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
art-of-dom committed Jul 31, 2016
1 parent 5526d00 commit 61b3db6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 10 additions & 1 deletion plugins/gcov/config/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,14 @@
- -b
- -o "$": GCOV_BUILD_OUTPUT_PATH
- "\"${1}\""

:gcov_post_report:
:executable: gcovr
:optional: TRUE
:arguments:
- -p
- -b
- -e '^vendor.*|^build.*|^test.*|^lib.*'
- --html
- -r .
- -o GcovCoverageResults.html
...
11 changes: 11 additions & 0 deletions plugins/gcov/gcov.rake
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,14 @@ namespace REFRESH_SYM do
end
end

namespace UTILS_SYM do

desc "Create gcov code coverage html report"
task GCOV_SYM do
command = @ceedling[:tool_executor].build_command_line(TOOLS_GCOV_POST_REPORT, nil)
puts 'Creating html report of gcov results...'
@ceedling[:tool_executor].exec(command[:line], command[:options])
end

end

0 comments on commit 61b3db6

Please sign in to comment.