SimpleCov coverage generated using RubyMine with one tab

MacOS Monterey 12.6,
RubyMine 2022.2.3,
Rails 7, ruby 3.1
simplecov (0.21.1),
test framework: rspec

Is there any way to pass simplecov 'rails' profile when running coverage from RM? If yes, please guide to exact location.

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

With above configuration and running coverage with commands:

$ rspec spec   
$ open coverage/index.html

Result is OK:

But when run coverage from RM, it generates report with only "All Files" tab.
When run from command line without "rails" profile in configuration, it will return one tab too:

# spec_helper.rb
require 'simplecov'

Posted question also on stackoverflow.



Please sign in to leave a comment.