Cumulative cover_me results for rspec and cucumber

Before moving on to ruby ​​1.9.2 and cover_me, I used rcov. We are not inclined to unit test controllers, relying instead on the coating of cucumber. Using rcov, it was possible to combine the results of the coating with both cucumbers and rspec. Is this possible with cover_me?

+4
source share
1 answer

Here's the Rakefile I ended up with, you can get coverage for rspec, cucumber, or both together:

namespace :cover_me do task :report do require 'cover_me' CoverMe.complete! end task :all => %w{ rake:spec rake:cucumber report } task :spec => %w{ rake:spec report } task :cucumber => %w{ rake:cucumber report } end 
+7
source

Source: https://habr.com/ru/post/1343196/


All Articles