In my rails engine simplecov does not (or rather will not) provide coverage for the lib directory.
I tried adding the root directory of the engine to the loadpath in spec_helper, and doing require "lib/myengine"
, which did not work.
HOWEVER If I simply rename lib
to bob
and change the corresponding require in the spec to require 'bob/myclass'
, the coverage DOES get created.
The issue seems to be purely with the name lib
. 🐤
Adding a group with the lib path does not help the matter.