I'm trying to use simplecov to get some spec coverage of my customisations to a Spree powered store.
Classes are usually stored in /app/models/spree/price_decorator.rb
and in the file we crack open the class with a Spree::Price.class_eval
block to include our custom logic.
However files aren't showing up in SimpleCov, I'm unsure if it's a technical limitation or is there a chance to have them in the final output.
SimpleCov is currently configured in a very simple way:
require 'simplecov'
SimpleCov.start 'rails' do
add_group 'Workers', 'app/workers'
end
I tried to add_group
with app/models/spree
but it doesn't work.
Any suggestion?