0

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.

Goaul
  • 943
  • 11
  • 13
  • I tried it with simplecov 0.21.2 and the latest RubyMine 2022.3 EAP, but the results from Terminal and from IDE were equal and both were with one 'All Files' tab. Do you get it on every project or only certain one? – Olivia Oct 24 '22 at 21:45
  • Checked also this project with simplecov 0.21.2, the same thing. In other project same. @Olivia you probably did not use rails profile in this line: SimpleCov.start 'rails' ref. https://github.com/simplecov-ruby/simplecov#getting-started – Goaul Oct 25 '22 at 07:14
  • Looks like it is not possible atm, got response on: https://intellij-support.jetbrains.com/hc/en-us/community/posts/8257125921170-SimpleCov-coverage-generated-using-RubyMine-with-one-tab – Goaul Oct 25 '22 at 16:15

0 Answers0