Versions used:
- SonarQube Scanner 4.2.0.1873
- Java 11.0.3 AdoptOpenJDK (64-bit)
- Linux 5.3.0-29-generic amd64
- Ruby 2.6.5p114
- Rails 6.0.2.1
- Simplecov 0.18.1 (2020-01-31)
Error observed
Simplecov team was changed the structure of results.
.resultset.json
on 0.17.1
version
{ "RSpec": { "coverage": { "/home/user/RubymineProjects/MyProject/app/api_wrappers/base_api.rb": { "lines": [ null, ...
.resultset.json
on 0.18.1
version
{ "RSpec": { "coverage": { "/home/user/RubymineProjects/MyProject/app/api_wrappers/base_api.rb": [ null, ...
So now they using array inside a file, inseted of using json
format and lines key
Steps to reproduce
- Install last version of simplecov, e.g. 0.18.1
- Run
rspec
test and check code coverage by runingcoverage/index.html
file - Run
sonar-scanner
- Results
0.0%
coverage