SimpleCov coverage generated using RubyMine with one tab

138 Views Asked by At

MacOS Monterey 12.6, RubyMine 2022.2.3, simplecov (0.12.0), test framework: rspec

Used simplecov configuration:

# spec_helper.rb
require 'simplecov'
SimpleCov.start 'rails'

Question: Why generating report with RM puts all in one tab? IS there any specific configuration for RM needed? Didn't find it in documentation.

This is OK

When running tests using command:

$ rspec spec   
$ open coverage/index.html

Then coverage report contains all these tabs:

All files, Controllers, Models, Mailers, Helpers, Jobs, Libraries, Ungrouped

This is not OK

When running tests using command from RM editor and after use button "Generate coverage report" (Saves in "coverage" folder)

Then coverage report contains only 1 tab:

All files

In both cases coverage percentage is correct.

0

There are 0 best solutions below