You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
I'm using codacy-coverage2.2.0 and I have recently updated simplecov from 0.17 to 0.18 and Codacy coverage reporter starts throwing error after testing:
I, [2020-02-03T14:19:44.876552 #17970] INFO -- : Parsing simplecov result to Codacy format...
F, [2020-02-03T14:19:44.882050 #17970] FATAL -- : undefined method `>' for #<Array:0x0000562bd59d35d0> (NoMethodError)
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/codacy-coverage-2.2.0/lib/codacy/parser.rb:19:in `block (2 levels) in parse_file'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/codacy-coverage-2.2.0/lib/codacy/parser.rb:19:in `count'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/codacy-coverage-2.2.0/lib/codacy/parser.rb:19:in `block in parse_file'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/codacy-coverage-2.2.0/lib/codacy/parser.rb:10:in `each'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/codacy-coverage-2.2.0/lib/codacy/parser.rb:10:in `map'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/codacy-coverage-2.2.0/lib/codacy/parser.rb:10:in `parse_file'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/codacy-coverage-2.2.0/lib/codacy/formatter.rb:6:in `format'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/simplecov-0.18.1/lib/simplecov/formatter/multi_formatter.rb:10:in `block in format'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/simplecov-0.18.1/lib/simplecov/formatter/multi_formatter.rb:8:in `map'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/simplecov-0.18.1/lib/simplecov/formatter/multi_formatter.rb:8:in `format'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/simplecov-0.18.1/lib/simplecov/result.rb:49:in `format!'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/simplecov-0.18.1/lib/simplecov/configuration.rb:196:in `block in at_exit'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/simplecov-0.18.1/lib/simplecov.rb:201:in `run_exit_tasks!'
/home/long/.rvm/gems/ruby-2.6.5@cems/gems/simplecov-0.18.1/lib/simplecov/defaults.rb:31:in `block in <top (required)>'
After digging in the code, simplecov_result.original_result (in Codacy::Parser) format is found to be changed. In simplecov0.17, the format is:
group :test do
# Note: simplecov version regressed from 0.18.1 to 0.17.1 until fix:
# https://github.com/codacy/ruby-codacy-coverage/issues/50
gem 'simplecov', '0.17.1', :require => false
gem 'codacy-coverage', :require => false
end
I'm using
codacy-coverage
2.2.0
and I have recently updatedsimplecov
from0.17
to0.18
and Codacy coverage reporter starts throwing error after testing:After digging in the code,
simplecov_result.original_result
(inCodacy::Parser
) format is found to be changed. Insimplecov
0.17
, the format is:In version
0.18
, this format is changed to:The text was updated successfully, but these errors were encountered: