lib/slather/command/coverage_command.rb in slather-2.4.3 vs lib/slather/command/coverage_command.rb in slather-2.4.4
- old
+ new
@@ -11,10 +11,11 @@
option ["--coveralls", "-c"], :flag, "Post coverage results to coveralls"
option ["--simple-output", "-s"], :flag, "Output coverage results to the terminal"
option ["--gutter-json", "-g"], :flag, "Output coverage results as Gutter JSON format"
option ["--cobertura-xml", "-x"], :flag, "Output coverage results as Cobertura XML format"
+ option ["--llvm-cov", "-r"], :flag, "Output coverage as llvm-cov format"
option ["--json"], :flag, "Output coverage results as simple JSON"
option ["--html"], :flag, "Output coverage results as static html pages"
option ["--show"], :flag, "Indicate that the static html pages will open automatically"
option ["--build-directory", "-b"], "BUILD_DIRECTORY", "The directory where gcno files will be written to. Defaults to derived data."
@@ -112,9 +113,11 @@
project.coverage_service = :terminal
elsif gutter_json?
project.coverage_service = :gutter_json
elsif cobertura_xml?
project.coverage_service = :cobertura_xml
+ elsif llvm_cov?
+ project.coverage_service = :llvm_cov
elsif html?
project.coverage_service = :html
project.show_html = show?
elsif json?
project.coverage_service = :json