Closed aaronmallen closed 1 year ago
hey @aaronmallen thanks for your feedback.
for the time being you can use one of SimpleCov's alternate formatters to lcov or Cobertura: https://github.com/colszowka/simplecov/blob/master/doc/alternate-formatters.md
I'm actually using y'all's deprecated gem until this gets added.
Internal ticket created : CY-2530
@mrfyda Hi, any updates on this? I see that an internal ticket was created and was wondering if this is resolved already.
@mrfyda Hi, any updates on this? I see that an internal ticket was created and was wondering if this is resolved already.
It appears to be supported now but I have to use the lcov
reporter:
# Gemfile
group :test do
gem 'simplecov', '~> 0.19'
gem 'simplecov-lcov', '~> 0.8'
end
# spec_helper.rb
require 'simplecov'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
COVERAGE_FORMATTER = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter
])
SimpleCov.start 'rails' do
enable_coverage :branch
formatter COVERAGE_FORMATTER
end
@mrfyda Hi, any updates on this? I see that an internal ticket was created and was wondering if this is resolved already.
We moved our issue tracking to another internal platform. This doesn't mean, however, that this is resolved already. When we fix this, we will close this Github issue accordingly.
Thanks for the update @lolgab
When using this workaround, it seems "project name" is not set on CI, so here's the command I needed to report coverage from CircleCI: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage/lcov/project.lcov
The team has decided to not continue with the support of SimpleCov.
Are there any plans to add
SimpleCov
support? Currently the only documented supported formats are:Specifically I would like to see SimpleCov added as well as support for the new branch coverage features.