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
I am not sure if I am doing something wrong, or if this is how it behaves.
I would like my code to have full branch coverage, but I am unable to configure Simplecov to report branch coverage percentage. I am referring to the percentage reported at the terminal:
Coverage report generated for RSpec to /vagrant/gems/runfile/coverage. 453 / 457 LOC (99.12%) covered.
I am able to see the Branch Coverage column and details in the HTML report, but I would like to see it in the terminal output as well.
Furthermore, the primary_coverage :branch setting - which I thought is the solution - does not seem to have any impact for me whatsoever. Not sure what is it supposed to do (and I have looked through all the pieces of Simplecov code that refers to it).
My top of the spec_helper.rb file looks like this:
I am not sure if I am doing something wrong, or if this is how it behaves.
I would like my code to have full branch coverage, but I am unable to configure Simplecov to report branch coverage percentage. I am referring to the percentage reported at the terminal:
I am able to see the Branch Coverage column and details in the HTML report, but I would like to see it in the terminal output as well.
Furthermore, the
primary_coverage :branch
setting - which I thought is the solution - does not seem to have any impact for me whatsoever. Not sure what is it supposed to do (and I have looked through all the pieces of Simplecov code that refers to it).My top of the
spec_helper.rb
file looks like this:Additional context
Simplecov required and working at the top of
spec_helper.rb
No rake. Directly running rspec, on a non rails app
No
0.22.0
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) +YJIT [x86_64-linux]
The text was updated successfully, but these errors were encountered: